Clear Up
SharpKit Reference

RemotingProvider Class

Namespace: Ext.direct

Base Types

System.Object

Constructors

Name Description
RemotingProvider()
RemotingProvider(RemotingProviderConfig)
RemotingProvider(object) @cfg {Number} timeout The timeout to use for each request. Defaults to undefined.

Properties

Name Description
alias Begin Definitions
enableBuffer
extend
maxRetries @cfg {Number} maxRetries Number of times to re-attempt delivery on failure of a call. Defaults to 1.

Methods

Name Description
combineAndSend() Combine any buffered requests and send them off @private
configureFormRequest(JsString, object, HtmlElement, JsAction, object) 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 (optional) A scope to execute the callback in
configureRequest(JsString, object, object) Configure a direct request @private @param {String} action The action being executed @param {Object} method The being executed
connect()
createHandler(JsString, object) Create a handler function for a direct call. @private @param {String} action The action the call is for @param {Object} method The details of the method @return {Function} A JS function that will kick off the call
disconnect()
getCallData(Transaction) Gets the Ajax call info for a transaction @private @param {Ext.direct.Transaction} transaction The transaction @return {Object} The call params
getTransaction(object) Get transaction from XHR options @private @param {Object} options The options sent to the Ajax request @return {Ext.direct.Transaction} The transaction, null if not found
initAPI() Initialize the API @private
isConnected()
onData(object, object, object) React to the ajax request being completed @private
queueTransaction(Transaction) Add a new transaction to the queue @private @param {Ext.direct.Transaction} transaction The transaction
runCallback(Transaction, Event) Run any callbacks related to the transaction. @private @param {Ext.direct.Transaction} transaction The transaction @param {Ext.direct.Event} event The event
sendFormRequest(Transaction) Sends a form request @private @param {Ext.direct.Transaction} transaction The transaction to send
sendRequest(object) Sends a request to the server @private @param {Object/Array} data The data to send
© Copyright 2005-2011 SharpKit. All rights reserved.