Hi nathan,
I added the following code to the header of a page:
window.addEvent('domready', function() {
var myIFrame = new IFrame({
src: 'test.htm',
'id': 'test',
'name': 'test',
styles: {
width: 800,
height: 600,
border: '1px solid #ccc'
},
events: {
'load': function() {
this.setStyle('height',
window.test.getScrollSize().y);
}
}
});
});
And the iframe in the body:
<iframe id="test" name="test"></iframe>
But when i load the page i get the following error:
B.contentWindow is null
And it seems to be in the mootools core script:
$extend(H.Element.prototype,Element.Prot...])?
B.addListener("load",A):A();return B;
Can you help me with this ?