io-xdr.js revision cc779b2f03fd6bd9734830da2fe53bbdd2562f7f
124N/A * Extends the IO base class to provide an alternate, Flash transport, for making 124N/A * cross-domain requests. 124N/A * @description This event is fired by YUI.io when the specified transport is 124N/A * @description Map of stored configuration objects when using 124N/A * Flash as the transport for cross-domain requests. 124N/A * @description Map of transaction simulated readyState values 124N/A * when XDomainRequest is the transport. 6695N/A // XDomainRequest cross-origin request detection 124N/A * @description Method that creates the Flash transport swf. 2960N/A * @param {string} uri - location of io.swf. 124N/A * @param {string} yid - YUI sandbox id. 124N/A * @param {string} yid - IO instance id. 7003N/A '<param name="movie" value="' +
uri +
'">' +
7003N/A '<param name="FlashVars" value="yid=' +
yid +
'&uid=' +
uid +
'">' +
5680N/A '<param name="allowScriptAccess" value="always">' +
5935N/A * @description Sets event handlers for XDomainRequest transactions. 765N/A * @param {object} o - Transaction object generated by _create() in io-base. 765N/A * @param {object} c - configuration object for the transaction. 3817N/A * @description Creates a response object for XDR transactions, for success 3817N/A * @param {object} o - Transaction object generated by _create() in io-base. 3817N/A * @param {boolean} u - Configuration xdr.use. 3817N/A * @param {boolean} d - Configuration xdr.dataType. function _data(o, u, d) {
* @description Method for intiating an XDR transaction abort. * @param {object} o - Transaction object generated by _create() in io-base. * @param {object} c - configuration object for the transaction. * @description Method for determining if an XDR transaction has completed * and all data are received. * @param {object} o - Transaction object generated by _create() in io-base. * @description Map of io transports. * @description Method for accessing the transport's interface for making a * cross-domain transaction. * @param {string} uri - qualified path to transaction resource. * @param {object} o - Transaction object generated by _create() in io-base. * @param {object} c - configuration object for the transaction. // The configuration object cannot be serialized safely // across Flash's ExternalInterface. return o.c ?
_abort(o, c) :
false;
* @description Response controller for cross-domain requests when using the * Flash transport or IE8's XDomainRequest object. * @param {string} e - Event name * @param {object} o - Transaction object generated by _create() in io-base. * @param {object} c - configuration object for the transaction. //This case is not used by Flash or XDomainRequest. * @description Fires event "io:xdrReady" * @param {number} yid - YUI sandbox id. * @param {number} uid - IO instance id. * @description Method to initialize the desired transport. * @param {object} o - object of transport configurations. * @description Fires event "io:xdrReady" * @param {number} yid - YUI sandbox id. * @param {number} uid - IO instance id. * @description Delay value to calling the Flash transport, in the * event io.swf has not finished loading. Once the E_XDR_READY * event is fired, this value will be set to 0.