Exercises
To complete these exercises, you will need the index.html
file for this chapter, as well as the finished JavaScript code as found in complete.js
. These files can be downloaded from the Packt Publishing website at http://www.packtpub.com/support.
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...