Skip to main content

Bug Tracker

Side navigation

#381 closed feature (fixed)

Opened November 11, 2006 11:00AM UTC

Closed December 22, 2006 02:40PM UTC

Last modified March 14, 2012 11:07PM UTC

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.

Attachments (0)
Change History (5)

Changed November 11, 2006 11:02AM UTC by joern comment:1

version: 1.0b11.0

Hijacking Version 1.0 for anything scheduled for 1.1.

Changed November 17, 2006 09:59AM UTC by joern comment:2

milestone: → 1.1
version: 1.01.1

Changed December 21, 2006 04:05PM UTC by joern comment:3

1. Introducde jQuery.ajaxSettings or something similar, contains all defaults currently defined in jQuery.ajax

2. modify ajaxTimeout() to set jQuery.ajaxSettings.timeout instead of jQuery.timeout

3. modify jQuery.ajax: s = jQuery.extend({}, jQuery.ajaxSettings, s);

4. introducde ajaxSetup() or similar: ajaxSetup: function(settings) { jQuery.extend(jQuery.ajaxSettings, settings); }

5. add test for ajaxSetup

Changed December 22, 2006 01:57PM UTC by joern comment:4

summary: Move default settings for $.ajax into a global objectDocument global ajax settings

Implemented, but not yet documented.

Changed December 22, 2006 02:40PM UTC by joern comment:5

resolution: → fixed
status: newclosed

Fixed in SVN.