#381 closed feature (fixed)
Document global ajax settings
Reported by: | joern | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.1a |
Component: | ajax | Version: | 1.1a |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
By moving the defaults into a global object, clients could modify these defaults for all following requests. This is already available for timeout, but would be useful for other options, too.
Setting timeout is currently wrapped inside it's own method, that makes it easy to integrate the global timeout setting into the other defaults without breaking the API.
Change History (5)
comment:1 Changed 16 years ago by
Version: | 1.0b1 → 1.0 |
---|
comment:2 Changed 16 years ago by
Milestone: | → 1.1 |
---|---|
Version: | 1.0 → 1.1 |
comment:3 Changed 16 years ago by
- Introducde jQuery.ajaxSettings or something similar, contains all defaults currently defined in jQuery.ajax
- modify ajaxTimeout() to set jQuery.ajaxSettings.timeout instead of jQuery.timeout
- modify jQuery.ajax: s = jQuery.extend({}, jQuery.ajaxSettings, s);
- introducde ajaxSetup() or similar: ajaxSetup: function(settings) { jQuery.extend(jQuery.ajaxSettings, settings); }
- add test for ajaxSetup
comment:4 Changed 16 years ago by
Summary: | Move default settings for $.ajax into a global object → Document global ajax settings |
---|
Implemented, but not yet documented.
Note: See
TracTickets for help on using
tickets.
Hijacking Version 1.0 for anything scheduled for 1.1.