This example uses a DataSource that points to Flickr Web
Services; Flickr returns XML data via a simple PHP proxy. In order to return
valid data from the Flickr application, scriptQueryParameter
has been customized to be tags, and scriptQueryAppend is used
to pass in additional required arguments. The cache has been disabled so
that each query is forced to make a trip to the live application.
This instance of AutoComplete defines a robust custom
formatResult function that parses result data into custom HTML
markup that displays an actual image from the Flickr server. Automatic
highlighting of the first result item in the container has been disabled by
setting autoHighlight to false.
CSS:
Markup:
JavaScript:
Note: Logging and debugging is currently turned off for this example.
Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Copyright Policy - Job Openings