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

Using The Application

Now hopefully, all has gone well and it’s all pieced together correctly (if it hasn’t, you can visit the AjaxAC web site and download this example in full.

Assuming the database has been created and populated correctly, you should be able to hit the index.php file on your web server and type a partial phrase to get a list of results. This code will work (at minimum) in Internet Explorer 6 and in FireFox

If it doesn’t quite work, I highly recommend using FireFox to debug the JavaScript (as its JavaScript debugging is much better than Internet Explorer), and to verify the HTTP subrequest are working correctly, use the livehttpheaders plugin for FireFox, as it will easily allow you to see if requests are being made correctly.

AjaxAC doesn’t have a lot in the way of debugging at this stage, but hopefully that will change at some point down the track.

In This Article