-
Book Overview & Buying
-
Table Of Contents
Learning jQuery, Third Edition
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 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.
Challenge: Add a form to the page that points to a Flickr public photo search (http://www.flickr.com/search/) and make sure it has an <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, use tags instead of q, and set format to json. Also note that rather than callback, the service expects the JSONP callback...
Change the font size
Change margin width
Change background colour