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 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 thanexercises-content.html
.Challenge: When the page loads, send a JSONP request to Twitter and retrieve a user's last five messages. Insert...