At first I thought my iframe wasn't working at all, but then I added a
border color and realized that just the src is not working. I've
tried changing the src to local pages, but all I get is the border
from the below code when injected.
var mb = $(document.body);
coords = mb.getSize();
var CorrectMargin = Math.round((coords.y/2) - 225);
var DivIframe = $("IframeContainer");
var ifr = new IFrame("iframe", {
id: "IframeID",
src: "http://www.google.com",
styles: {
"width" : "734px",
"height" : "450px",
"border" : "1px solid #0c0",
"scrolling" : "0",
"margin-top" : CorrectMargin
}
});
ifr.inject(DivIframe);
DivIframe.setStyle("display", "block");
Am I missing something obvious here? I see the green border nicely
sized and positioned in the middle of the page, but google does not
load in it.