you’re on your way 4
29
next generation applications
Did you pair up the happy couples? Make sure you got all of these right,
and if not, take your time and gure out what you missed, and why.
var request = new XMLHttpRequest();
The Great Code-Comment Coupling Contest
request.open(“POST”, url, true);
var url = “/servlet/GetMileageServlet”;
request.open(“GET”, url, false);
/* Initialize an asynchronous connection using POST */
/* Initialize a synchronous connection using GET */
/* Create a new variable and assign it the URL to a Java servlet */
/* Create a new object to talk HTTP to a web server */
Meet the Happy Couples...
When this is false, the
request will be synchronous...
...and when it’s true, the
request is ...