Friday, June 16th, 2006
In this HOWTO I will explain how to use AjaxAgent and PHP to create an Ajax Auto-Complete box with a drill-down list of data. Although the state of this Ajax Framework is questionable it is so far the simplest and easiest framework I have found.
The UI is very simple. It consists of a TextBox to enter an Artistsâ€™ Name, a selectbox to display the Albums and an unordered list to display the songs on an album. This will be future extended with the ability to drill-down into an Album and get a list of songs.
He breaks it up into three sections – the auto-complete, posting back, and an “on your own” section to test you on the skills you should have learned so far. All of the code is provided for you, save for the database structure they use. It’s a pretty simple setup, though, and would take five minutes (max) for someone familiar with SQL or something like phpMyAdmin to set up.
Posted by Chris Cornutt at 6:55 am