71bc3d5ee8f4acbccbe7dd9e96fee5f0e2c83f86
[roojs1] / docs / src / Roo_Ajax.js.html
1 <html><head><title>/home/edward/gitlive/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">/*
2  * Based on:
3  * Ext JS Library 1.1.1
4  * Copyright(c) 2006-2007, Ext JS, LLC.
5  *
6  * Originally Released Under LGPL - original licence link has changed is not relivant.
7  *
8  * Fork - LGPL
9  * &lt;script type=&quot;text/javascript&quot;&gt;
10  */
11
12 /**
13  * Global Ajax request class.
14  * 
15  * @class Roo.Ajax
16  * @extends Roo.data.Connection
17  * @static
18  * 
19  * @cfg {String} url  The default URL to be used for requests to the server. (defaults to undefined)
20  * @cfg {Object} extraParams  An object containing properties which are used as extra parameters to each request made by this object. (defaults to undefined)
21  * @cfg {Object} defaultHeaders  An object containing request headers which are added to each request made by this object. (defaults to undefined)
22  * @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)
23  * @cfg {Number} timeout (Optional) The timeout in milliseconds to be used for requests. (defaults to 30000)
24  * @cfg {Boolean} autoAbort (Optional) Whether a new request should abort any pending requests. (defaults to false)
25  * @cfg {Boolean} disableCaching (Optional)   True to add a unique cache-buster param to GET requests. (defaults to true)
26  */
27 </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">({
28     </span><span class="jsdoc-comment">// fix up the docs
29     /**
30      * @scope Roo.Ajax
31      * @type {Boolear} 
32      */
33     </span><span class="jsdoc-var">autoAbort </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">false</span><span class="jsdoc-syntax">,
34
35     </span><span class="jsdoc-comment">/**
36      * Serialize the passed form into a url encoded string
37      * @scope Roo.Ajax
38      * @param {String/HTMLElement} form
39      * @return {String}
40      */
41     </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">){
42         </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">);
43     }
44 });</span></code></body></html>