datasource-xhr.js revision 34c2cd9ace7db6f07c9ed3b4a813810d4fa20ee3
1255N/A * The DataSource utility provides a common configurable interface for widgets to * access a variety of data, from JavaScript arrays to online database servers. * XHR subclass for the YUI DataSource utility. * @extends DataSource.Local ///////////////////////////////////////////////////////////////////////////// // DataSource.XHR static properties ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// // DataSource.XHR Attributes ///////////////////////////////////////////////////////////////////////////// * Internal init() handler. * @param config {Object} Config object. * <dt>interval {Number}</dt> * <dd>Interval ID of in-progress queue.</dd> * <dd>In-progress connection identifier (if applicable).</dd> * <dt>requests {Object[]}</dt> * <dd>Array of queued request objects: {request:oRequest, callback:_xhrCallback}.</dd> * @default {interval:null, conn:null, requests:[]} * Passes query string to IO. Fires <code>response</code> event when * response is received asynchronously. * @param e {Event.Facade} Event Facade with the following properties: * <dt>tId (Number)</dt> <dd>Unique transaction ID.</dd> * <dt>request (Object)</dt> <dd>The request.</dd> * <dt>callback (Object)</dt> <dd>The callback object with the following properties: * <dt>success (Function)</dt> <dd>Success handler.</dd> * <dt>failure (Function)</dt> <dd>Failure handler.</dd> * <dt>scope (Object)</dt> <dd>Execution context.</dd> * <dt>cfg (Object)</dt> <dd>Configuration object.</dd> },
'@VERSION@' ,{
requires:[
'datasource-local',
'io']});