Hi All,
I have a chrome extension which creates an IFrame for a couple of web 
pages. I am able to create the IFrame, but the IFrame is not displaying any 
content. I want to setup messaging between the parent doument and the 
IFrame. Has anybody done this before? 

This is my code to add the IFrame in the content script.

*************
var $j = jQuery.noConflict(true);

var iframeSource = 
chrome.extension.getURL('bootstrap/dist/bootstrap/index.html');


$j(document).ready(function() {

    // Create the iframe
    var iframe = document.createElement('iframe');
    iframe.setAttribute('src', iframeSource);
    iframe.setAttribute('id', the_iframe');
    iframe.style.width = 450 + 'px';
    iframe.style.height = 200 + 'px';
    document.body.appendChild(iframe);
});
****
I definitely create the Iframe and it shows my page with nothing displayed 
(debug image attached). 

I think I am missing something when loading Angular in an IFrame.

Any suggestions would be appreciated.
Thanks, Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/d4e8cb47-fd1e-4ca9-8610-5422ed94bb11n%40googlegroups.com.

Reply via email to