Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to do searching by html or javascript.

How to do searching by html or javascript.

Scheduled Pinned Locked Moved Web Development
javascripthtmlalgorithmstutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SIJUTHOMASP
    wrote on last edited by
    #1

    Hai , I am having a html page. Inside I am having a textbox, a dropdown with static values and a html button. I need to do a searching when user specify some text(piece of text) in side the text box and click the button. The searching should do inside my specified folder for some word documents. Suppose I am having a word doc 'dem.doc' inside the folder C:\NewFolder.When user specify demo in the given text box, and clik the button, I need to open the specified word doc. Is it possible by using only html and or javascript. Please show me the right way. Thank You, Rahul.P.Menon "Truth cannot be make hidden for long time. Becoz it is programmed to become visible"

    F 1 Reply Last reply
    0
    • S SIJUTHOMASP

      Hai , I am having a html page. Inside I am having a textbox, a dropdown with static values and a html button. I need to do a searching when user specify some text(piece of text) in side the text box and click the button. The searching should do inside my specified folder for some word documents. Suppose I am having a word doc 'dem.doc' inside the folder C:\NewFolder.When user specify demo in the given text box, and clik the button, I need to open the specified word doc. Is it possible by using only html and or javascript. Please show me the right way. Thank You, Rahul.P.Menon "Truth cannot be make hidden for long time. Becoz it is programmed to become visible"

      F Offline
      F Offline
      FlashnDatabase
      wrote on last edited by
      #2

      :)The following code will hopefully do what u want: function openWordDocument() { specificFolder="c:\\NewFolder"; var fso; fso = new ActiveXObject("Scripting.FileSystemObject"); if(fso.FileExists(specificFolder+"\\"+f1.t1.value)) { document.URL=specificFolder+"\\"+f1.t1.value; } else { alert("File does not exist"); } }

      Dheeraj Grover (spicymails@gmail.com)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups