war/src/main/webapp/scripts/hudson-behavior.js
/**
 * Loads a dynamically created invisible IFRAME.
 */
Loads a dynamically created invisible IFRAME.
Loads a dynamically created invisible IFRAME .
function createIframe(src,callback) {
    var iframe = document.createElement("iframe");
    iframe.src = src;
    iframe.style.display = "none";
    var done = false;
    iframe.onload = iframe.onreadystatechange = function() {
        if ( !done && (!this.readyState ||
                this.readyState === "loaded" || this.readyState === "complete") ) {
            done = true;
            callback();
        }
    };
    document.body.appendChild(iframe);
    return iframe;
}
function createIframe ( src , callback ) { var iframe = document . createElement ( "iframe" ) ; iframe . src = src ; iframe . style . display = "none" ; var done = false ; iframe . onload = iframe . onreadystatechange = function ( ) { if ( ! done && ( ! this . readyState || this . readyState === "loaded" || this . readyState === "complete" ) ) { done = true ; callback ( ) ; } } ; document . body . appendChild ( iframe ) ; return iframe ; }
Loads a dynamically created invisible IFRAME.
Loads a dynamically created invisible IFRAME .