How to do searching by html or javascript.
-
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"
-
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"
:)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)