4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
13 * Global Ajax request class.
15 * @extends Roo.data.Connection
16 * @instanceOf Roo.data.Connection
18 Roo.Ajax = new Roo.data.Connection({
27 * @cfg {String} url @hide
30 * @cfg {Object} extraParams @hide
33 * @cfg {Object} defaultHeaders @hide
36 * @cfg {String} method (Optional) @hide
39 * @cfg {Number} timeout (Optional) @hide
42 * @cfg {Boolean} autoAbort (Optional) @hide
46 * @cfg {Boolean} disableCaching (Optional) @hide
50 * @property disableCaching
51 * True to add a unique cache-buster param to GET requests. (defaults to true)
56 * The default URL to be used for requests to the server. (defaults to undefined)
60 * @property extraParams
61 * An object containing properties which are used as
62 * extra parameters to each request made by this object. (defaults to undefined)
66 * @property defaultHeaders
67 * An object containing request headers which are added to each request made by this object. (defaults to undefined)
72 * The default HTTP method to be used for requests. (defaults to undefined; if not set but parms are present will use POST, otherwise GET)
77 * The timeout in milliseconds to be used for requests. (defaults to 30000)
83 * Whether a new request should abort any pending requests. (defaults to false)
89 * Serialize the passed form into a url encoded string
90 * @param {String/HTMLElement} form
93 serializeForm : function(form){
94 return Roo.lib.Ajax.serializeForm(form);