Section 2.45. EXERCISE SOLUTION


2.45. EXERCISE SOLUTION

Work It Through

Just like the Boards 'R' Us application in Chapter 1, you're going to need several JavaScript functions to make the Break Neck application work. Below on the left are the names of two JavaScript functions, and on the right are several lines of JavaScript. Draw arrows from the lines of code to the function each line will go into.

                                     request.send(null);                                     if (request.readyState == 4) { ... }     getCustomerInfo()                                      request.open("GET", url, true);                                     request.onreadystatechange = updatePage;     updatePage()                                      var phone = document.getElementById("phone").value;                                     if (request.status == 200) { ... } 





Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net