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

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

More information
Related Books
The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP

The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP

With over 3 million users worldwide, Adobe's Dreamweaver is the most popular web development...

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

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

Dreamweaver CS4 is a massive step forward in terms of integration with the rest of the CS4 suite...
Browse Articles
Ajax (4), APC (1), CAPTCHA (1), CSS (3), Debugging (1), File Upload (1), Google (3), Google Maps (2), JavaScript (12), JSON (2), MVC (1), MySQL (7), onbeforeunload (1), OOP (1), PHP (28), PhpDoc (1), PostgreSQL (6), Prototype (11), Reflection (1), RFC 1867 (1), Robots (1), Scriptaculous (1), SEO (1), Sessions (1), SimpleXML (1), Smarty (5), SOAP (1), SPL (1), Templates (2), W3C (1), XHTML (1), Zend Framework (1), Zend_Search_Lucene (1)

PhpRiot Newsletter
Your Email Address:

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


Tagged in , , ,