How to perform search using AJAX?



Share on Google+Share on Google+

How to perform search using AJAX?
1 Answer(s)      6 years and 3 months ago
Posted in : Ajax


I have following HTML code:

<table style="border: 1px solid #9f9f9f; float:right;">
<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>
<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>

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

View Answers

June 7, 2011 at 12:53 PM

Hi Supriya

First retrieve it and then implement the search as given in the below link :


Related Tutorials/Questions & Answers: