Call (877) SITE-OPT (748-3678)

Code: Ajax Callback Function

Chapter 8 - Ajax Optimization

Once the request has been initialized, assign a callback function to the onreadystatechange event handler. This function will be invoked as data is returned from the server.

xhr.onreadystatechange = function( ){responseCallback(xhr);};

Finally, send the request on its way....

xhr.send( );
Copyright © 2002-2018 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In