How to perform search using AJAX?

Ads
 

How to perform search using AJAX?

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

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 :

http://www.roseindia.net/javascript/method-createtextrang.shtml

Ads









Related Tutorials/Questions & Answers:
How to perform search using AJAX?
How to perform CRUD operations using gwt on Restlet server 2.0
Advertisements
how to write a program to search a record using mvc2
How to write a search functionality using javascript/jquery
How to using Binary Search Array Java ?
How to create binary search tree using an array?
How to search the selected item in row table using radia button in JSP?
how to perform a validation for the field
how to perform a validation for the field
how to get data using dropdownlist, textbox and search button in jsp
how to perform a equqlity triangle in java
how to perform a equqlity triangle in java
how to search for string using LIKE operator instead of integer?
Search string using substring
Search Directory on Ftp Server
Auto Search box using ajax
search functionality using jsp from database
how to perform operation on data retrieved from database in jsp?
How to include website in google search?
Auto complete of word search using ajax with java
Auto complete of word search using ajax with java
how to create using jsp
Case-insensitive search using Hibernate Query Language(HQL).
How are joins handled using Hinernate?
How to configure Spring using Annotation
How to design a form using java?
how to search a text in all files in a folder in unix
how to search a text in all files in a folder in unix
how to search a text in all files in a folder in unix
how to search a text in all files in a folder in unix
How to zip a file using javascrip?

Ads