11.07.2015 Views

AJAX and PHP

AJAX and PHP

AJAX and PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>AJAX</strong> Suggest <strong>and</strong> AutocompleteIt's all about enriching web applications' user interfaces with features that have already beenintegrated into desktop applications. See a nice autocomplete example that implements this featureat http://demo.script.aculo.us/ajax/autocompleter.The most popular example of this feature is Google Suggest.Google SuggestWhy Google Suggest? Because it is the most popular web implementation of suggest <strong>and</strong>autocomplete using <strong>AJAX</strong>. Believe it or not, Google was not the first to implement thistechnology. Christian Stocker used it in his Bitflux Blog http://blog.bitflux.ch/archive/2004/07/13/livesearch_roundup.html in April 2004, seven months prior to Google's release.One article that describes exactly how autocomplete textboxes can be implemented in a web pageusing JavaScript goes as back as September 2003, http://www.sitepoint.com/article/lifeautocomplete-textboxes.XMLHttpRequest is known to have been in use for a couple of yearsnow. Therefore, Google didn't invent anything; it just put together a perfect example.The web address where Google Suggest can be accessed is http://www.google.com/webhp?complete=1&hl=enFigure 6.1: Google Suggest in Beta166

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!