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">
14 * @extends Roo.data.Connection
15 * Global Ajax request class.
17 * @instanceOf Roo.data.Connection
19 Roo.Ajax = new Roo.data.Connection({
28 * @cfg {String} url @hide
31 * @cfg {Object} extraParams @hide
34 * @cfg {Object} defaultHeaders @hide
37 * @cfg {String} method (Optional) @hide
40 * @cfg {Number} timeout (Optional) @hide
43 * @cfg {Boolean} autoAbort (Optional) @hide
47 * @cfg {Boolean} disableCaching (Optional) @hide
51 * @property disableCaching
52 * True to add a unique cache-buster param to GET requests. (defaults to true)
57 * The default URL to be used for requests to the server. (defaults to undefined)
61 * @property extraParams
62 * An object containing properties which are used as
63 * extra parameters to each request made by this object. (defaults to undefined)
67 * @property defaultHeaders
68 * An object containing request headers which are added to each request made by this object. (defaults to undefined)
73 * The default HTTP method to be used for requests. (defaults to undefined; if not set but parms are present will use POST, otherwise GET)
78 * The timeout in milliseconds to be used for requests. (defaults to 30000)
84 * Whether a new request should abort any pending requests. (defaults to false)
90 * Serialize the passed form into a url encoded string
91 * @param {String/HTMLElement} form
94 serializeForm : function(form){
95 return Roo.lib.Ajax.serializeForm(form);