How to perform search using AJAX?

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 perform a validation for the field
how to perform a validation for the field
How to create binary search tree using an array?
how to perform a equqlity triangle in java
How to search the selected item in row table using radia button in JSP?
how to perform a equqlity triangle in java
how to get data using dropdownlist, textbox and search button in jsp
how to search for string using LIKE operator instead of integer?
Search string using substring
Auto Search box using ajax
search functionality using jsp from database
how to perform operation on data retrieved from database in jsp?
Search Directory on Ftp Server
Auto complete of word search using ajax with java
Auto complete of word search using ajax with java
ModuleNotFoundError: No module named 'perform'
Case-insensitive search using Hibernate Query Language(HQL).
How to include website in google search?
how to create using jsp
Search operation in JSP page
About search and replace contains of .doc or .docx file using java.
Java JMenuItem to perform file operations
JSF Search Application Using Ajax
how to search the string arraylist contains database rows?
search
how to search a text in all files in a folder in unix

Ads