JavaScript
  Home arrow JavaScript arrow Building the Server-side Component of a Se...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Building the Server-side Component of a Search Engine with AJAX
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2006-11-21

    Table of Contents:
  • Building the Server-side Component of a Search Engine with AJAX
  • The search engine's client module
  • Coding the search engine's server module
  • Putting the search engine to work

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building the Server-side Component of a Search Engine with AJAX


    (Page 1 of 4 )

    Are you one of those web developers wishing to find new and creative ways to use the power of AJAX? Then this set of tutorials might be what you’ve looking for! Welcome to the second installment of the series “Building a search engine with AJAX.” In three comprehensive articles, this series teaches you how to create an expansible search engine which displays results without having to reload the web page.

    Introduction

    Now that you know what this series is about, I'm going to review the topics that I covered in the preceding article. You'll remember that I focused all my efforts on creating an appropriate front-end for the search application such that users were able to introduce their search terms, obviously via a regular input form, and see the results returned by the server, displayed in a separate panel of the user interface.

    In addition to these topics, I showed you the set of straightforward JavaScript functions responsible for sending HTTP requests in the background. These came in handy for passing different search terms to the server and displaying the corresponding results.

    So far, if you've been a patient reader and tested all the client-side code of this AJAX-based application, then possibly you'll realize that the program is indeed immature. But why am I saying this? Well, to be frank, the search engine needs to be able to perform real queries against a particular database. In this way, it can deliver back to the client the pertinent results according to specific search criteria. Sounds pretty logical, right?

    Okay, considering that these concepts make sense, in this second article of the series, I'll show you how to develop the core module of this search engine by using PHP 5 (other server-side scripting languages can be used, naturally). Hopefully, by the end of this tutorial, you'll have a fully-functional search engine which uses AJAX to perform the pertinent searching process in the background.

    Having defined the goals for this article, let's get started.

    More JavaScript Articles
    More By Alejandro Gervasio


       · Over the course of this second tutorial, this AJAX-based search engine is expanded,...
       · hello,The article was very helpful, but i have a problem how i can connect...
       · Hello Jova,Thank you for commenting on my AJAX article, and I'm glad to know it...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT