AJAX Search Suggest Tutorial |
This tutorial will walk you through creating a search suggest script similar in fashion to that of Google Suggest using AJAX technologies. You can see what the results of this tutorial will look like by typing in the search box above.
Suggest is one of the better AJAX patterns that I have run across. It certainly can make a site much more user friendly in implemented properly. What we will be creating probably won't be that useful, but it will give you a good understanding of how to implement a robust version on your own site.
This tutorial is extreamly simple, thus is a great place to start if you are unfamiliar with AJAX technologies. The tutorial consists of a HTML page for presenting the suggest searchbox, a JavaScript file for handling the AJAX functionality, and a simple server-side PHP page that returns a new-line seperated list of suggested searches.
The suggestions returned from the server are based on my page titles. In a real implemetation, you would probably want to make this more robust to suggest searches that other users have looked for in the past.
The database structure for this tutorial is going to consist of two simple columns: suggest_id and title. All we really need is the title, but I always provide a primary key for any table that I create. Read the Full Tutorial at the website. |
|
Specifications |
View Demo |
Download |
Platform(s) |
Linux, Windows, Mac OSX, Sun Solaris, FreeBSD |
Database(s) |
MYSQL |
Version |
1 |
File Size |
< 100KB |
Date Added |
Tuesday, September, 15th 2009 |
Last Updated |
Tuesday, October, 13th 2009 |
|
|
License Information |
License
Type |
Other Free / Open Source License |
Price |
0 USD |
|
Resource Posted
by:
Archana Chadha. This script listing has been viewed 3768 times so far. |
Search Scripts Disclaimer - Please be aware Search-Scripts.com accepts no responsibility for the scripts, components & software you are downloading. The same applies to the information provided about the Web Scripts, Tutorials & Software Products listed, as the producer can modify it without notifying us. Even if we try to check the files for viruses ourselves, we cannot guarantee 100% that they are clean. For your own protection always check downloaded files for viruses. |
Click
Here to view all the scripts in Tips and Tutorials category.
|
User Rating Chart
|
|
|
Member Ratings - Chart |
|
|
|
1 |
|
() |
2 |
|
() |
3 |
|
() |
4 |
|
() |
5 |
|
() |
|
|
Visitor
Ratings - Chart |
() |
() |
() |
() |
() |
|
|
|
|
|
1 |
2 |
3 |
4 |
5 |
|
|
|
|
|
|
There are no user reviews for this Resource Listing. Be the first to post a comment. Click Here |
Related Scripts |
- Innovative maps for your site with CloudMade Maps
|