PhpRiot
Download Article
Download this article in PDF format with all listings and files.

Price: $5.00 AUD
(Approx. $4.35 USD)

More information
Related Books
Learning PHP, MySQL, and JavaScript: A Step-By-Step Guide to Creating Dynamic Websites (Animal Guide)

Learning PHP, MySQL, and JavaScript: A Step-By-Step Guide to Creating Dynamic Websites (Animal Guide)

If you know HTML, this guide will have you building interactive websites quickly. You'll learn...

The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP (Essentials)

The Essential Guide to Dreamweaver CS4 with CSS, Ajax, and PHP (Essentials)

Dreamweaver CS4 is a massive step forward in terms of integration with the rest of the CS4 suite...
PhpRiot Newsletter
Your Email Address:

More information

Cloning Google Suggest With Ajaxac

Our Gameplan

First things first — we need to work out how to approach this whole thing.

We are going to create four files in this article:

  1. index.php — This is the frontend file that the user visits to use the application
  2. googlesuggestclone.css — This stores all of our stylesheet information
  3. googlesuggestclone.js — This is a JavaScript file that contains various utility functions that will be needed
  4. GoogleSuggestCloneJax.class.php — This is our AjaxAC application, which pieces everything together.

We will be creating all four files simultaneously – building parts of one, then moving to the next, then going back, etc, until we are done. Additionally, there will be an SQL data file we will use to create our index of search suggestions.

Also, if you don’t already have a copy of AjaxAC, you will need to download it from http://ajax.zervaas.com.au

You could implement this application without a framework such as AjaxAC, but using it allows a structured approach to building the necessary JavaScript, as well as keeping all backend data operations in the same place. Additionally, it allows you develop future AJAX applications using a similar structure.

Although AjaxAC is still in relatively early development, the future features it will offer also will aid greatly in developing these kinds of applications, such as a standard data exchange format, backend logging and debugging, as well as simplified JavaScript code generation.

So let’s get started, first stop is creating the index.php file.

In This Article