X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FAjax.js;h=f483741b6b075e81c29787b7578367ec8b0937b0;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=2cb4e18dec8481044e0374c7d9d2a75466d6561e;hpb=709405851fbde1c2c21e00fb161490d5a6732d48;p=roojs1 diff --git a/Roo/Ajax.js b/Roo/Ajax.js index 2cb4e18dec..f483741b6b 100644 --- a/Roo/Ajax.js +++ b/Roo/Ajax.js @@ -11,82 +11,30 @@ /** * Global Ajax request class. + * * @class Roo.Ajax * @extends Roo.data.Connection - * @instanceOf Roo.data.Connection + * @static + * + * @cfg {String} url The default URL to be used for requests to the server. (defaults to undefined) + * @cfg {Object} extraParams An object containing properties which are used as extra parameters to each request made by this object. (defaults to undefined) + * @cfg {Object} defaultHeaders An object containing request headers which are added to each request made by this object. (defaults to undefined) + * @cfg {String} method (Optional) The default HTTP method to be used for requests. (defaults to undefined; if not set but parms are present will use POST, otherwise GET) + * @cfg {Number} timeout (Optional) The timeout in milliseconds to be used for requests. (defaults to 30000) + * @cfg {Boolean} autoAbort (Optional) Whether a new request should abort any pending requests. (defaults to false) + * @cfg {Boolean} disableCaching (Optional) True to add a unique cache-buster param to GET requests. (defaults to true) */ Roo.Ajax = new Roo.data.Connection({ // fix up the docs - /** - * fix up scoping * @scope Roo.Ajax - */ - - /** - * @cfg {String} url @hide - */ - /** - * @cfg {Object} extraParams @hide - */ - /** - * @cfg {Object} defaultHeaders @hide - */ - /** - * @cfg {String} method (Optional) @hide - */ - /** - * @cfg {Number} timeout (Optional) @hide - */ - /** - * @cfg {Boolean} autoAbort (Optional) @hide - */ - - /** - * @cfg {Boolean} disableCaching (Optional) @hide - */ - - /** - * @property disableCaching - * True to add a unique cache-buster param to GET requests. (defaults to true) - * @type Boolean - */ - /** - * @property url - * The default URL to be used for requests to the server. (defaults to undefined) - * @type String - */ - /** - * @property extraParams - * An object containing properties which are used as - * extra parameters to each request made by this object. (defaults to undefined) - * @type Object - */ - /** - * @property defaultHeaders - * An object containing request headers which are added to each request made by this object. (defaults to undefined) - * @type Object - */ - /** - * @property method - * The default HTTP method to be used for requests. (defaults to undefined; if not set but parms are present will use POST, otherwise GET) - * @type String - */ - /** - * @property timeout - * The timeout in milliseconds to be used for requests. (defaults to 30000) - * @type Number - */ - - /** - * @property autoAbort - * Whether a new request should abort any pending requests. (defaults to false) - * @type Boolean + * @type {Boolear} */ autoAbort : false, /** * Serialize the passed form into a url encoded string + * @scope Roo.Ajax * @param {String/HTMLElement} form * @return {String} */