Exercises
The challenge exercises may require the use of the official jQuery documentation at http://api.jquery.com/:
- Alter the
buildItem()
function so that it includes the long description of each jQuery method it displays. - Here's a challenge for you. Add a form to the page that points to a Flickr public photo search (http://www.flickr.com/search/) and make sure it has
<input name="q">
and a submit button. Use progressive enhancement to retrieve the photos from Flickr's JSONP feed service at http://api.flickr.com/services/feeds/photos_public.gne instead and insert them into the content area of the page. When sending data to this service, usetags
instead ofq
and setformat
tojson
. Also note that rather thancallback
, the service expects the JSONP callback name to bejsoncallback
. - Here's another challenge for you. Add error handling for the Flickr request in case it results in
parsererror
. Test it by setting the JSONP callback name back tocallback
.