1 <html><head><title>../roojs1/Roo/Ajax.js</title><link rel="stylesheet" type="text/css" href="../../../css/highlight-js.css"/></head><body class="highlightpage"><code class="jsdoc-pretty"><span class="jsdoc-comment">/*
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 </span><span class="jsdoc-var">Roo.Ajax </span><span class="jsdoc-syntax">= </span><span class="jsdoc-keyword">new </span><span class="jsdoc-var">Roo.data.Connection</span><span class="jsdoc-syntax">({
19 </span><span class="jsdoc-comment">// fix up the docs
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)
86 </span><span class="jsdoc-var">autoAbort </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">false</span><span class="jsdoc-syntax">,
88 </span><span class="jsdoc-comment">/**
89 * Serialize the passed form into a url encoded string
90 * @param {String/HTMLElement} form
93 </span><span class="jsdoc-var">serializeForm </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">function</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">form</span><span class="jsdoc-syntax">){
94 </span><span class="jsdoc-keyword">return </span><span class="jsdoc-var">Roo.lib.Ajax.serializeForm</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">form</span><span class="jsdoc-syntax">);
96 });</span></code></body></html>