Server Side Autocompletion with PHP and XMLHttpRequest

Christian has an interesting new feature called “Livesearch” on his blog, described here. Try typing “PHP” in the search box on the right and see what happens.

On the client side it’s made possible with – you’ll see it using XMLHttpRequest to poll another PHP script that looks like – the script renders search results as HTML which is easily “embedded” in the output with some DOM manipulation.

This is the kind of thing I was trying to describe in Separating Browser from Resource.

Think Christians example proves that this approach can be fast and effective – if you didn’t look you’d assume the search results were sent with the page on the initial request, rather then being rendered dynamically.


Category: programming Time: 2004-07-08 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.179 (s). 12 q(s)