app/scripts/model/textdocument.js
//// this will work only in case when document.domain is same.
this will work only in case when document.domain is same.
this will work only in case when document . domain is same .
fetchbyIframe(options) {
        let docloader = $('#docloader');
        if (!docloader || docloader.length == 0) {
            $('div class="displaynone"><iframe id="documentLoader"></iframe></div>').appendTo('body');
        }
        docloader = $('#docloader');
        docloader.on('load', ()=>{
            let resp = docloader.contents().html();
            this.set(this.parse(resp, options));
        });
        docloader.attr('src', url);
    }
fetchbyIframe ( options ) { let docloader = $ ( '#docloader' ) ; if ( ! docloader || docloader . length == 0 ) { $ ( 'div class="displaynone"><iframe id="documentLoader"></iframe></div>' ) . appendTo ( 'body' ) ; } docloader = $ ( '#docloader' ) ; docloader . on ( 'load' , ( ) => { let resp = docloader . contents ( ) . html ( ) ; this . set ( this . parse ( resp , options ) ) ; } ) ; docloader . attr ( 'src' , url ) ; }
this will work only in case when document.domain is same.
this will work only in case when document . domain is same .