Building the Server-side Component of a Search Engine with AJAX
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.
Building the Server-side Component of a Search Engine with AJAX - The search engine's client module (Page 2 of 4 )
Naturally, before I start developing the actual core module of this search engine, I'd like you to take a quick look at its complete client-side code. Doing so, you'll understand much better how all the different components that comprise this application fit together.
Therefore, I listed the full client-code of this AJAX-based search engine below, ready to copy and paste. Please, have a look at it:
All right, as you can see, the complete client-side of this search application is really easy to grasp, since it doesn't present major problems with reference to its definition. Essentially, the above code listing is comprised of the set of JavaScript functions, which are tasked with performing the search process in the background, as well displaying the corresponding results back in the client. Of course, the remaining client code belongs specifically to the (X)HTML markup of the application, thus I won't bore you with irrelevant explanations about what it does.
So far, so good. As you might have guessed, developing the complete client module of this AJAX-driven search application is actually a direct process that can be achieved with minor troubles. However, the program in question is still incomplete. I've not demonstrated yet how to create the server module responsible for performing real searches against a selected database and displaying the corresponding results.
Indeed, it seems that there's hard work ahead of us, right? Well, to speak frankly, it's much simpler than you may think.
Want to learn how the server-side module of this application will be developed? Please click the link below and keep reading.