1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.Ajax</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.Ajax-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.Ajax-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.Ajax-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.Ajax-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img src="../../images/default/tree/elbow-end.gif" class="elbow"/><a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
48 <img src="../../images/default/s.gif" height="1" width="40"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.Ajax
53 <!-- ============================== class title / details ============================ -->
56 <h1 class="classTitle">
61 <table cellspacing="0" class="class-summary-table">
63 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
65 <tr><td class="label">Defined In:</td><td class="hd-info">
67 <a href="./src/Roo_Ajax.js.html">Roo/Ajax.js</a>.
70 <tr><td class="label">Class:</td><td class="hd-info">Ajax</td></tr>
75 <tr><td class="label">Extends:</td><td class="hd-info">
76 <a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
84 <!-- ============================== class summary ========================== -->
85 <div class="description">
86 Global Ajax request class.
90 <!-- ============================== Class comment block... ========================== -->
92 <div class="comments">
93 <b>Class Comments / Notes</B> =>
94 <u onclick="parent.CommentDialog.showCommentId = 'Roo.Ajax';">[Add Your comment/notes about this class]</u>
96 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
97 src="/blog.php/GtkDjsComments/Roo.Ajax.html"></iframe>
102 <!-- ============================== config options ========================== -->
107 <div class="hr"></div>
108 <a id="Roo.Ajax-configs"></a>
114 <table cellspacing="0" class="member-table">
115 <caption>Config Options (Usually are also Properties)</caption>
119 <th class="sig-header" colspan="2">Options</th>
121 <th class="msource-header">Defined By</th>
128 <tr class="config-row expandable config-row-alt0 notInherited">
129 <td class="micon"><a class="exi" href="#expand"> </a></td>
132 <a id="Roo.Ajax-cfg-autoAbort" name=".autoAbort"></a>
133 <div class="fixedFont">
134 <b class="itemname">autoAbort</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
140 <div class="short">(Optional) Whether a new request should abort any pending requests.</div>
145 (Optional) Whether a new request should abort any pending requests. (defaults to false)
161 <tr class="config-row expandable config-row-alt1 notInherited">
162 <td class="micon"><a class="exi" href="#expand"> </a></td>
165 <a id="Roo.Ajax-cfg-defaultHeaders" name=".defaultHeaders"></a>
166 <div class="fixedFont">
167 <b class="itemname">defaultHeaders</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
173 <div class="short">An object containing request headers which are added to each request made by this object.</div>
178 An object containing request headers which are added to each request made by this object. (defaults to undefined)
194 <tr class="config-row expandable config-row-alt0 notInherited">
195 <td class="micon"><a class="exi" href="#expand"> </a></td>
198 <a id="Roo.Ajax-cfg-disableCaching" name=".disableCaching"></a>
199 <div class="fixedFont">
200 <b class="itemname">disableCaching</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
206 <div class="short">(Optional) True to add a unique cache-buster param to GET requests.</div>
211 (Optional) True to add a unique cache-buster param to GET requests. (defaults to true)
227 <tr class="config-row expandable config-row-alt1 notInherited">
228 <td class="micon"><a class="exi" href="#expand"> </a></td>
231 <a id="Roo.Ajax-cfg-extraParams" name=".extraParams"></a>
232 <div class="fixedFont">
233 <b class="itemname">extraParams</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
239 <div class="short">An object containing properties which are used as extra parameters to each request made by this object.</div>
244 An object containing properties which are used as extra parameters to each request made by this object. (defaults to undefined)
260 <tr class="config-row expandable config-row-alt0">
261 <td class="micon"><a class="exi" href="#expand"> </a></td>
264 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
265 <div class="fixedFont">
266 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
272 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
277 list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre>
287 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
293 <tr class="config-row expandable config-row-alt1 notInherited">
294 <td class="micon"><a class="exi" href="#expand"> </a></td>
297 <a id="Roo.Ajax-cfg-method" name=".method"></a>
298 <div class="fixedFont">
299 <b class="itemname">method</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
305 <div class="short">(Optional) The default HTTP method to be used for requests.</div>
310 (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)
326 <tr class="config-row expandable config-row-alt0 notInherited">
327 <td class="micon"><a class="exi" href="#expand"> </a></td>
330 <a id="Roo.Ajax-cfg-timeout" name=".timeout"></a>
331 <div class="fixedFont">
332 <b class="itemname">timeout</b> : <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
338 <div class="short">(Optional) The timeout in milliseconds to be used for requests.</div>
343 (Optional) The timeout in milliseconds to be used for requests. (defaults to 30000)
359 <tr class="config-row expandable config-row-alt1 notInherited">
360 <td class="micon"><a class="exi" href="#expand"> </a></td>
363 <a id="Roo.Ajax-cfg-url" name=".url"></a>
364 <div class="fixedFont">
365 <b class="itemname">url</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
371 <div class="short">The default URL to be used for requests to the server.</div>
376 The default URL to be used for requests to the server. (defaults to undefined)
402 <!-- ============================== public properties ==================== -->
406 <a id="Roo.Ajax-props"></a>
412 <table cellspacing="0" class="member-table">
413 <caption class="Empty">Public Properties - Has None</caption>
419 <!-- ============================== methods summary / details ======================== -->
422 <a id="Roo.Ajax-methods"></a>
423 <!-- constructor?? -->
430 <!-- then dynamics first -->
437 <table cellspacing="0" class="member-table">
438 <caption>Public Methods</caption>
440 <th class="sig-header" colspan="2">Method</th>
441 <th class="msource-header">Defined By</th>
451 <tr class="method-row config-row-alt0 expandable">
452 <td class="micon"><a class="exi" href="#expand"> </a></td>
456 <a id="Roo.data.Connection-method-abort" name=".abort"></a>
457 <div class="fixedFont">
458 <span class="attributes"></span><b class="itemname">abort</b>
460 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>transactionId</i></B>)
467 <div class="short">Aborts any outstanding request.</div>
473 Aborts any outstanding request.
480 <dl class="detailList">
481 <dt class="heading">Parameters:</dt>
484 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>transactionId</b>
487 <dd>(Optional) defaults to the last transaction</dd>
507 <a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
513 <tr class="method-row config-row-alt1 expandable">
514 <td class="micon"><a class="exi" href="#expand"> </a></td>
518 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
519 <div class="fixedFont">
520 <span class="attributes"></span><b class="itemname">addEvents</b>
522 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
529 <div class="short">Used to define events on this Observable</div>
535 Used to define events on this Observable
542 <dl class="detailList">
543 <dt class="heading">Parameters:</dt>
546 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
549 <dd>The object with the events defined</dd>
569 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
575 <tr class="method-row config-row-alt0 expandable">
576 <td class="micon"><a class="exi" href="#expand"> </a></td>
580 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
581 <div class="fixedFont">
582 <span class="attributes"></span><b class="itemname">addListener</b>
584 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
591 <div class="short">Appends an event handler to this component</div>
597 Appends an event handler to this component
604 <dl class="detailList">
605 <dt class="heading">Parameters:</dt>
608 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
611 <dd>The type of event to listen for</dd>
614 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
617 <dd>The method the event invokes</dd>
620 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
623 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
626 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
629 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
649 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
655 <tr class="method-row config-row-alt1 expandable">
656 <td class="micon"><a class="exi" href="#expand"> </a></td>
660 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
661 <div class="fixedFont">
662 <span class="attributes"></span><b class="itemname">fireEvent</b>
664 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
670 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
679 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
685 Fires the specified event with the passed parameters (minus the event name).
692 <dl class="detailList">
693 <dt class="heading">Parameters:</dt>
696 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
702 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
705 <dd>Variable number of parameters are passed to handlers</dd>
713 <dl class="detailList">
714 <dt class="heading">Returns:</dt>
716 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
732 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
738 <tr class="method-row config-row-alt0 expandable">
739 <td class="micon"><a class="exi" href="#expand"> </a></td>
743 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
744 <div class="fixedFont">
745 <span class="attributes"></span><b class="itemname">hasListener</b>
747 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
753 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
762 <div class="short">Checks to see if this object has any listeners for a specified event</div>
768 Checks to see if this object has any listeners for a specified event
775 <dl class="detailList">
776 <dt class="heading">Parameters:</dt>
779 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
782 <dd>The name of the event to check for</dd>
790 <dl class="detailList">
791 <dt class="heading">Returns:</dt>
793 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
809 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
815 <tr class="method-row config-row-alt1 expandable">
816 <td class="micon"><a class="exi" href="#expand"> </a></td>
820 <a id="Roo.data.Connection-method-isLoading" name=".isLoading"></a>
821 <div class="fixedFont">
822 <span class="attributes"></span><b class="itemname">isLoading</b>
824 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>transactionId</i></B>)
830 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
839 <div class="short">Determine whether this object has a request outstanding.</div>
845 Determine whether this object has a request outstanding.
852 <dl class="detailList">
853 <dt class="heading">Parameters:</dt>
856 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>transactionId</b>
859 <dd>(Optional) defaults to the last transaction</dd>
867 <dl class="detailList">
868 <dt class="heading">Returns:</dt>
870 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if there is an outstanding request.</dd>
886 <a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
892 <tr class="method-row config-row-alt0 expandable">
893 <td class="micon"><a class="exi" href="#expand"> </a></td>
897 <a id="Roo.util.Observable-method-on" name=".on"></a>
898 <div class="fixedFont">
899 <span class="attributes"></span><b class="itemname">on</b>
901 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
908 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
914 Appends an event handler to this element (shorthand for addListener)
921 <dl class="detailList">
922 <dt class="heading">Parameters:</dt>
925 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
928 <dd>The type of event to listen for</dd>
931 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
934 <dd>The method the event invokes</dd>
937 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
940 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
943 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
966 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
972 <tr class="method-row config-row-alt1 expandable">
973 <td class="micon"><a class="exi" href="#expand"> </a></td>
977 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
978 <div class="fixedFont">
979 <span class="attributes"></span><b class="itemname">purgeListeners</b>
988 <div class="short">Removes all listeners for this object</div>
994 Removes all listeners for this object
1015 <td class="msource">
1017 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1023 <tr class="method-row config-row-alt0 expandable">
1024 <td class="micon"><a class="exi" href="#expand"> </a></td>
1028 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1029 <div class="fixedFont">
1030 <span class="attributes"></span><b class="itemname">removeListener</b>
1032 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1039 <div class="short">Removes a listener</div>
1052 <dl class="detailList">
1053 <dt class="heading">Parameters:</dt>
1056 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1059 <dd>The type of event to listen for</dd>
1062 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1065 <dd>The handler to remove</dd>
1068 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1071 <dd>(optional) The scope (this object) for the handler</dd>
1089 <td class="msource">
1091 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1097 <tr class="method-row config-row-alt1 expandable">
1098 <td class="micon"><a class="exi" href="#expand"> </a></td>
1102 <a id="Roo.data.Connection-method-request" name=".request"></a>
1103 <div class="fixedFont">
1104 <span class="attributes"></span><b class="itemname">request</b>
1106 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1112 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1121 <div class="short">Sends an HTTP request to a remote server.</div>
1127 Sends an HTTP request to a remote server.
1134 <dl class="detailList">
1135 <dt class="heading">Parameters:</dt>
1138 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1141 <dd>An object which may contain the following properties:<ul><br/><li><b>url</b> {String} (Optional) The URL to which to send the request. Defaults to configured URL</li><br/><li><b>params</b> {Object/String/Function} (Optional) An object containing properties which are used as parameters to the<br/>request, a url encoded string or a function to call to get either.</li><br/><li><b>method</b> {String} (Optional) The HTTP method to use for the request. Defaults to the configured method, or<br/>if no method was configured, "GET" if no parameters are being sent, and "POST" if parameters are being sent.</li><br/><li><b>callback</b> {Function} (Optional) The function to be called upon receipt of the HTTP response.<br/>The callback is called regardless of success or failure and is passed the following parameters:<ul><br/><li>options {Object} The parameter to the request call.</li><br/><li>success {Boolean} True if the request succeeded.</li><br/><li>response {Object} The XMLHttpRequest object containing the response data.</li><br/></ul></li><br/><li><b>success</b> {Function} (Optional) The function to be called upon success of the request.<br/>The callback is passed the following parameters:<ul><br/><li>response {Object} The XMLHttpRequest object containing the response data.</li><br/><li>options {Object} The parameter to the request call.</li><br/></ul></li><br/><li><b>failure</b> {Function} (Optional) The function to be called upon failure of the request.<br/>The callback is passed the following parameters:<ul><br/><li>response {Object} The XMLHttpRequest object containing the response data.</li><br/><li>options {Object} The parameter to the request call.</li><br/></ul></li><br/><li><b>scope</b> {Object} (Optional) The scope in which to execute the callbacks: The "this" object<br/>for the callback function. Defaults to the browser window.</li><br/><li><b>form</b> {Object/String} (Optional) A form object or id to pull parameters from.</li><br/><li><b>isUpload</b> {Boolean} (Optional) True if the form object is a file upload (will usually be automatically detected).</li><br/><li><b>headers</b> {Object} (Optional) Request headers to set for the request.</li><br/><li><b>xmlData</b> {Object} (Optional) XML document to use for the post. Note: This will be used instead of<br/>params for the post data. Any params will be appended to the URL.</li><br/><li><b>disableCaching</b> {Boolean} (Optional) True to add a unique cache-buster param to GET requests.</li><br/></ul></dd>
1149 <dl class="detailList">
1150 <dt class="heading">Returns:</dt>
1152 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> transactionId</dd>
1166 <td class="msource">
1168 <a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
1174 <tr class="method-row config-row-alt0 expandable">
1175 <td class="micon"><a class="exi" href="#expand"> </a></td>
1179 <a id="Roo.util.Observable-method-un" name=".un"></a>
1180 <div class="fixedFont">
1181 <span class="attributes"></span><b class="itemname">un</b>
1183 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
1190 <div class="short">Removes a listener (shorthand for removeListener)</div>
1196 Removes a listener (shorthand for removeListener)
1203 <dl class="detailList">
1204 <dt class="heading">Parameters:</dt>
1207 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1210 <dd>The type of event to listen for</dd>
1213 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1216 <dd>The handler to remove</dd>
1219 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1222 <dd>(optional) The scope (this object) for the handler</dd>
1240 <td class="msource">
1242 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1251 <!-- ============================== events summary / details ======================== -->
1254 <a id="Roo.Ajax-events"></a>
1263 <table cellspacing="0" class="member-table">
1264 <caption>Events</caption>
1267 <th class="sig-header" colspan="2">Event</th>
1268 <th class="msource-header">Defined By</th>
1277 <tr class="method-row expandable config-row-alt0">
1278 <td class="micon"><a class="exi" href="#expand"> </a></td>
1281 <a id="Roo.data.Connection-event-*beforerequest"></a>
1283 <div class="fixedFont">
1284 <b class="itemname">beforerequest</b> (Connection <B><i>conn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1290 <div class="short">Fires before a network request is made to retrieve a data object.
1296 Fires before a network request is made to retrieve a data object.
1302 <dl class="detailList">
1303 <dt class="heading">Parameters:</dt>
1306 <span class="fixedFont">Connection</span> <b>conn</b>
1309 <dd>This Connection object.</dd>
1312 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1315 <dd>The options config object passed to the {<b>link</b> <b>request</b>} method.</dd>
1333 <td class="msource">
1334 <a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
1338 <tr class="method-row expandable config-row-alt1">
1339 <td class="micon"><a class="exi" href="#expand"> </a></td>
1342 <a id="Roo.data.Connection-event-*requestcomplete"></a>
1344 <div class="fixedFont">
1345 <b class="itemname">requestcomplete</b> (Connection <B><i>conn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>response</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1351 <div class="short">Fires if the request was successfully completed.
1357 Fires if the request was successfully completed.
1363 <dl class="detailList">
1364 <dt class="heading">Parameters:</dt>
1367 <span class="fixedFont">Connection</span> <b>conn</b>
1370 <dd>This Connection object.</dd>
1373 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
1376 <dd>The XHR object containing the response data.<br/>See {<b>link</b> http://www.w3.org/TR/XMLHttpRequest/} for details.</dd>
1379 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1382 <dd>The options config object passed to the {<b>link</b> <b>request</b>} method.</dd>
1400 <td class="msource">
1401 <a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
1405 <tr class="method-row expandable config-row-alt0">
1406 <td class="micon"><a class="exi" href="#expand"> </a></td>
1409 <a id="Roo.data.Connection-event-*requestexception"></a>
1411 <div class="fixedFont">
1412 <b class="itemname">requestexception</b> (Connection <B><i>conn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>response</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1418 <div class="short">Fires if an error HTTP status was returned from the server.
1424 Fires if an error HTTP status was returned from the server.<br/>See {<b>link</b> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html} for details of HTTP status codes.
1430 <dl class="detailList">
1431 <dt class="heading">Parameters:</dt>
1434 <span class="fixedFont">Connection</span> <b>conn</b>
1437 <dd>This Connection object.</dd>
1440 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
1443 <dd>The XHR object containing the response data.<br/>See {<b>link</b> http://www.w3.org/TR/XMLHttpRequest/} for details.</dd>
1446 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1449 <dd>The options config object passed to the {<b>link</b> <b>request</b>} method.</dd>
1467 <td class="msource">
1468 <a href="./Roo.data.Connection.html#constructor" roo:cls="Roo.data.Connection.html#constructor">Roo.data.Connection</a>
1479 <!-- ============================== footer ================================= -->
1480 <div class="fineprint" style="clear:both">
1482 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Tue Mar 22 2016 11:14:07 GMT+0800 (HKT)
1484 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>