src/aria/core/transport/IFrame.js
function (id) {
            var description = this._requests[id];
            if (!description) {
                // The request was aborted
                return;
            }
            var request = description.request;
            var callback = description.cb;

            var iFrame = request.iFrame;
            var responseText, contentDocument = iFrame.contentDocument, contentWindow;

            if (contentDocument == null) {
                var contentWindow = iFrame.contentWindow;
                if (contentWindow) {
                    contentDocument = contentWindow.document;
                }
            }
            if (contentDocument) {
                var body = contentDocument.body || contentDocument.documentElement;
                if (body) {
                    // this is for content displayed as text:
                    responseText = body.textContent || body.outerText;
                }
                var xmlDoc = contentDocument.XMLDocument;
                // In IE, contentDocument contains a transformation of the document
                // see: http://www.aspnet-answers.com/microsoft/JScript/29847637/javascript-ie-xml.aspx
                if (xmlDoc) {
                    contentDocument = xmlDoc;
                }
            }

            this._deleteRequest(request);

            var response = {
                status : 200,
                responseText : responseText,
                responseXML : contentDocument
            };

            callback.fn.call(callback.scope, false, callback.args, response);
        }
function (id) {
            var description = this._requests[id];
            if (!description) {
                // The request was aborted
                return;
            }
            var request = description.request;
            var callback = description.cb;

            var iFrame = request.iFrame;
            var responseText, contentDocument = iFrame.contentDocument, contentWindow;

            if (contentDocument == null) {
                var contentWindow = iFrame.contentWindow;
                if (contentWindow) {
                    contentDocument = contentWindow.document;
                }
            }
            if (contentDocument) {
                var body = contentDocument.body || contentDocument.documentElement;
                if (body) {
                    // this is for content displayed as text:
                    responseText = body.textContent || body.outerText;
                }
                var xmlDoc = contentDocument.XMLDocument;
                // In IE, contentDocument contains a transformation of the document
                // see: http://www.aspnet-answers.com/microsoft/JScript/29847637/javascript-ie-xml.aspx
                if (xmlDoc) {
                    contentDocument = xmlDoc;
                }
            }

            this._deleteRequest(request);

            var response = {
                status : 200,
                responseText : responseText,
                responseXML : contentDocument
            };

            callback.fn.call(callback.scope, false, callback.args, response);
        }
function ( id ) { var description = this . _requests [ id ] ; if ( ! description ) { // The request was aborted return ; } var request = description . request ; var callback = description . cb ; var iFrame = request . iFrame ; var responseText , contentDocument = iFrame . contentDocument , contentWindow ; if ( contentDocument == null ) { var contentWindow = iFrame . contentWindow ; if ( contentWindow ) { contentDocument = contentWindow . document ; } } if ( contentDocument ) { var body = contentDocument . body || contentDocument . documentElement ; if ( body ) { // this is for content displayed as text: responseText = body . textContent || body . outerText ; } var xmlDoc = contentDocument . XMLDocument ; // In IE, contentDocument contains a transformation of the document // see: http://www.aspnet-answers.com/microsoft/JScript/29847637/javascript-ie-xml.aspx if ( xmlDoc ) { contentDocument = xmlDoc ; } } this . _deleteRequest ( request ) ; var response = { status : 200 , responseText : responseText , responseXML : contentDocument } ; callback . fn . call ( callback . scope , false , callback . args , response ) ; }
Sends back the results of the request
@param {String} id Request id
@protected
Sends back the results of the request