December 2013
Intermediate to advanced
384 pages
9h 54m
English
$.ajaxSetup({url:"service.php", accepts:"json})
jQuery provides the .ajaxSetup() method that allows you to specify options that configure AJAX requests throughout the script. Table 13.2 lists some of the options that can be specified when calling .ajaxSetup(). For example, the following code sets the default global URL for requests:
$.ajaxSetup({url:"service.php", accepts:"json})
Table 13.2 jQuery Global AJAX Event Handler Registration Methods
Read now
Unlock full access