-
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 exercise may require use of the official jQuery documentation at http://api.jquery.com/.
When the page loads, pull the body content of exercises-content.html into the content area of the page.
Rather than displaying that whole document at once, create "tooltips" for the letters in the left column by loading just the appropriate letter's content from exercises-content.html when the user's mouse is over the letter.
Add error handling for this page load, displaying the error message in the content area. Test this error handling code by changing the script to request does-not-exist.html rather than exercises-content.html.
Challenge: When the page loads, send a JSONP request to Twitter and retrieve a user's last five messages. Insert...
Change the font size
Change margin width
Change background colour