Creating the Front End of a Search Engine with AJAX
Welcome to the first part of a three-part series that will show you how to create a search engine that fetches content from a database. We will use PHP and AJAX to create this engine. This article will focus on creating the search engine's front end.
Creating the Front End of a Search Engine with AJAX - Creating the search engine’s user interface (Page 2 of 5 )
A good place to start creating the search engine that I discussed in the introduction is with building the user interface. Not surprisingly, it will be composed of an input box, where users can enter different search terms; a regular “Search” button; and a containing DIV where the corresponding results will be displayed on the browser. So far, it sounds really simple, right?
Now, having explained how the front end of this search engine will look, pay attention to the following image, which shows the general structure of the user interface in question, along with some fictional results:
As you can see, the above screen shot illustrates clearly how the front end of the application will look. In this case, I decided to exemplify the use of this system with a hypothetical web site, but this can be easily modified to implement the search engine with other applications.
Okay, at this stage hopefully you have a clear idea of how the corresponding visual presentation of this AJAX-based program will be achieved, based on the image that I provided to you. Therefore, it’s time to move on and translate the previous picture into functional code.
Now things are getting really interesting. If you want to learn how this story continues, click on the link below and keep reading.