-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-direct.RemotingProvider'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-direct-RemotingProvider'>/**
</span> * @class Ext.direct.RemotingProvider
* @extends Ext.direct.JsonProvider
*
/* End Definitions */
-<span id='Ext-direct.RemotingProvider-cfg-actions'> /**
+<span id='Ext-direct-RemotingProvider-cfg-actions'> /**
</span> * @cfg {Object} actions
* Object literal defining the server side actions and methods. For example, if
* the Provider is configured with:
* available as the <tt>result</tt> in the example above.
*/
-<span id='Ext-direct.RemotingProvider-cfg-namespace'> /**
+<span id='Ext-direct-RemotingProvider-cfg-namespace'> /**
</span> * @cfg {String/Object} namespace
* Namespace for the Remoting Provider (defaults to the browser global scope of <i>window</i>).
* Explicitly specify the namespace Object, or specify a String to have a
* {@link Ext#namespace namespace created} implicitly.
*/
-<span id='Ext-direct.RemotingProvider-cfg-url'> /**
+<span id='Ext-direct-RemotingProvider-cfg-url'> /**
</span> * @cfg {String} url
- * <b>Required<b>. The url to connect to the {@link Ext.direct.Manager} server-side router.
+ * <b>Required</b>. The url to connect to the {@link Ext.direct.Manager} server-side router.
*/
-<span id='Ext-direct.RemotingProvider-cfg-enableUrlEncode'> /**
+<span id='Ext-direct-RemotingProvider-cfg-enableUrlEncode'> /**
</span> * @cfg {String} enableUrlEncode
* Specify which param will hold the arguments for the method.
* Defaults to <tt>'data'</tt>.
*/
-<span id='Ext-direct.RemotingProvider-cfg-enableBuffer'> /**
+<span id='Ext-direct-RemotingProvider-cfg-enableBuffer'> /**
</span> * @cfg {Number/Boolean} enableBuffer
* <p><tt>true</tt> or <tt>false</tt> to enable or disable combining of method
* calls. If a number is specified this is the amount of time in milliseconds
- * to wait before sending a batched request (defaults to <tt>10</tt>).</p>
+ * to wait before sending a batched request.</p>
* <br><p>Calls which are received within the specified timeframe will be
* concatenated together and sent in a single request, optimizing the
* application by reducing the amount of round trips that have to be made
*/
enableBuffer: 10,
-<span id='Ext-direct.RemotingProvider-cfg-maxRetries'> /**
+<span id='Ext-direct-RemotingProvider-cfg-maxRetries'> /**
</span> * @cfg {Number} maxRetries
- * Number of times to re-attempt delivery on failure of a call. Defaults to <tt>1</tt>.
+ * Number of times to re-attempt delivery on failure of a call.
*/
maxRetries: 1,
-<span id='Ext-direct.RemotingProvider-cfg-timeout'> /**
+<span id='Ext-direct-RemotingProvider-cfg-timeout'> /**
</span> * @cfg {Number} timeout
- * The timeout to use for each request. Defaults to <tt>undefined</tt>.
+ * The timeout to use for each request.
*/
timeout: undefined,
var me = this;
me.callParent(arguments);
me.addEvents(
-<span id='Ext-direct.RemotingProvider-event-beforecall'> /**
+<span id='Ext-direct-RemotingProvider-event-beforecall'> /**
</span> * @event beforecall
* Fires immediately before the client-side sends off the RPC call.
* By returning false from an event handler you can prevent the call from
* @param {Object} meta The meta data
*/
'beforecall',
-<span id='Ext-direct.RemotingProvider-event-call'> /**
+<span id='Ext-direct-RemotingProvider-event-call'> /**
</span> * @event call
* Fires immediately after the request to the server-side is sent. This does
* NOT fire after the response has come back from the call.
me.callBuffer = [];
},
-<span id='Ext-direct.RemotingProvider-method-initAPI'> /**
+<span id='Ext-direct-RemotingProvider-method-initAPI'> /**
</span> * Initialize the API
* @private
*/
}
},
-<span id='Ext-direct.RemotingProvider-method-createHandler'> /**
+<span id='Ext-direct-RemotingProvider-method-createHandler'> /**
</span> * Create a handler function for a direct call.
* @private
* @param {String} action The action the call is for
}
},
-<span id='Ext-direct.RemotingProvider-method-runCallback'> /**
+<span id='Ext-direct-RemotingProvider-method-runCallback'> /**
</span> * Run any callbacks related to the transaction.
* @private
* @param {Ext.direct.Transaction} transaction The transaction
}
},
-<span id='Ext-direct.RemotingProvider-method-onData'> /**
+<span id='Ext-direct-RemotingProvider-method-onData'> /**
</span> * React to the ajax request being completed
* @private
*/
}
},
-<span id='Ext-direct.RemotingProvider-method-getTransaction'> /**
+<span id='Ext-direct-RemotingProvider-method-getTransaction'> /**
</span> * Get transaction from XHR options
* @private
* @param {Object} options The options sent to the Ajax request
return options && options.tid ? Ext.direct.Manager.getTransaction(options.tid) : null;
},
-<span id='Ext-direct.RemotingProvider-method-configureRequest'> /**
+<span id='Ext-direct-RemotingProvider-method-configureRequest'> /**
</span> * Configure a direct request
* @private
* @param {String} action The action being executed
}
},
-<span id='Ext-direct.RemotingProvider-method-getCallData'> /**
+<span id='Ext-direct-RemotingProvider-method-getCallData'> /**
</span> * Gets the Ajax call info for a transaction
* @private
* @param {Ext.direct.Transaction} transaction The transaction
};
},
-<span id='Ext-direct.RemotingProvider-method-sendRequest'> /**
+<span id='Ext-direct-RemotingProvider-method-sendRequest'> /**
</span> * Sends a request to the server
* @private
* @param {Object/Array} data The data to send
Ext.Ajax.request(request);
},
-<span id='Ext-direct.RemotingProvider-method-queueTransaction'> /**
+<span id='Ext-direct-RemotingProvider-method-queueTransaction'> /**
</span> * Add a new transaction to the queue
* @private
* @param {Ext.direct.Transaction} transaction The transaction
}
},
-<span id='Ext-direct.RemotingProvider-method-combineAndSend'> /**
+<span id='Ext-direct-RemotingProvider-method-combineAndSend'> /**
</span> * Combine any buffered requests and send them off
* @private
*/
}
},
-<span id='Ext-direct.RemotingProvider-method-configureFormRequest'> /**
+<span id='Ext-direct-RemotingProvider-method-configureFormRequest'> /**
</span> * Configure a form submission request
* @private
* @param {String} action The action being executed
* @param {Object} method The method being executed
* @param {HTMLElement} form The form being submitted
* @param {Function} callback (optional) A callback to run after the form submits
- * @param {Object} scope A scope to execute the callback in
+ * @param {Object} scope (optional) A scope to execute the callback in
*/
configureFormRequest : function(action, method, form, callback, scope){
var me = this,
}
},
-<span id='Ext-direct.RemotingProvider-method-sendFormRequest'> /**
+<span id='Ext-direct-RemotingProvider-method-sendFormRequest'> /**
</span> * Sends a form request
* @private
* @param {Ext.direct.Transaction} transaction The transaction to send
}
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>