jQuery.ajaxSetup() Function

By: Dusty Arlia
Published on Thursday, December 12, 2013, 08:10 PM
Last Updated on Saturday, July 11, 2015 at 9:02 PM
Total Updates: 2

The jQuery.ajaxSetup() function can be used to setup default values for Ajax request. Here is an example:

    timeout: 5000,   //Abort all Ajax requests after 5 seconds
    cache: false     //Add timestamp to the URL; prevents caching