-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning jQuery - Fourth Edition - Fourth 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 the 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 the whole document at once, create tooltips for the letters in the left-hand 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.
Here's a challenge. When the page loads, send a JSONP request to GitHub and retrieve a list of repositories...
Change the font size
Change margin width
Change background colour