News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NETTUTS.com:
How to Add Auto Complete to Your Google Custom Search Engine
October 29, 2008 @ 10:27:03

The NETTUTS.com site has a new tutorial posted today showing how to combine jQuery and PHP to add auto complete functionality to a simple search engine.

This tutorial will show you how to use the "Popular Queries" feed from your Google Custom Search Engine (CSE) as a data source for a jQuery autocomplete.

They walk through the creation of the search page and provide the code for the jQuery half that calls the autocomplete() method on the search field. The PHP script that's called loads the XML file from Google's server with the latest from the "Popular Queries" page. This is then parsed and sent back out as Javascript back to the waiting jQuery. They also include a brief look at caching the results by writing them out to a file that's checked and updated based on the results of a filectime() call.

0 comments voice your opinion now!
autocomplete google custom search engine tutorial jquery


blog comments powered by Disqus

Similar Posts

NETTUTS.com: How to Create a Wordpress Theme from Scratch: Part 2

Padraic Brady's Blog: Compiling PHP for Windows Vista using Visual C++ Express 2008 - Seriously!

Matthew Weier O'Phinney's Blog: Autocompletion with Zend Framework and Dojo

Justin Carmony's Blog: Setting Up Nginx & PHP-FPM on Ubuntu 10.04

HowToForge.com: Installing Cherokee With PHP5 And MySQL Support On Ubuntu 11.04


Community Events





Don't see your event here?
Let us know!


interview deployment release library symfony laravel community voicesoftheelephpant series developer language zendserver bugfix conference framework api list podcast introduction tips

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework