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









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 perform the client side validations to the dropdown list using javascript?
how to write a program to search a record using mvc2
How to write a search functionality using javascript/jquery
how to search data in xml files using php
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
Building Search Engine Applications Using Servlets !
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
how to search - WebSevices
ModuleNotFoundError: No module named 'perform'
Case-insensitive search using Hibernate Query Language(HQL).
How to include website in google search?
how to search a word on entire database? - SQL
using servlets and jsp technologies search the documents - Development process
Search operation in JSP page
How to search entry in ZipFile.
Search word from text file using Java
About search and replace contains of .doc or .docx file using java.
how to create using jsp
Java JMenuItem to perform file operations
search
JSF Search Application Using Ajax
how to search the string arraylist contains database rows?
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 code a Product id search engine?
SEO and Search Engines,Best Search Engines on Web,What is Search Engine
SEARCH
elasticsearch search by type
how to show search results in the same panel of jframe to where search field and button is present..
Source Code for Implementing Search Feature in JSP using Java action/Servlet - JSP-Servlet
Source Code for Implementing Search Feature in JSF/JSP using Servlet - Java Beginners
How can i search and insert within a query

Ads