PHP based AJAX Phone Directory Portlet

Finally got around to getting all the pieces together, but here it is. The original demo was packaged as a Domino database and I promised a PHP version along with all of the sample data plus some other goodies below the results area.

Place the cursor in the field and start typing a last name. The results of the type-ahead will be placed into the textarea for the purposes of demonstration. There is some odd behavior in how the last names are displayed but that is just some overlapping CSS from the blog template that I have not bothered to override for the purposes of this demo.

Employee Last Name

Results from XML Call:

Some goodies to take home:
A list of 600 random names with phone #’s and ID’s
The PHP page to import the names into a new table.
The PHP page to serve XML from the new table.
The js file that is used to create the phone directory.
The js file to populate a text area with the XML

Comments are closed.