
Hi,
I have following HTML code:
<table style="border: 1px solid #9f9f9f; float:right;"> <tr> <td><label for="status">Search Status</td> <td><input type="text" id="status" name="status" dojoType="dijit.form.TextBox" size="40" value="Please enter search criteria"/></td> </tr> <tr> <td><label for="push">Push to start</td> <td><button dojoType="dijit.form.Button" style="width: 4em" type="button" name="submitButton" value="Submit" onclick="loadDoc()"></button></td> </tr></table>
I want that when a user enter some keyword in the textbox and hit button, there is a Ajax call to retrieve search results from a simple txt file kept on my local. Please guide how do I achieve this? I have written loadDOC method which simply retrieves the txt file contents but I want it search based

Hi Supriya
First retrieve it and then implement the search as given in the below link :
http://www.roseindia.net/javascript/method-createtextrang.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.