Hi there,
I'm trying to create an iframe like this :
myIFrame = new IFrame({
id: 'iframe_content',
src: 'test2.htm'
});
myIFrame.inject(document.body);
And that is working just fine, and in the page i load i try to run a
simple script :
window.addEvent('domready', function() {
$('test').set('text', 'Tester Mootools i IFrame');
});
But this fails with the error : window.addEvent is not a function,
then i made a search on this matter and found that it only would work
if the app is on a live server. I then tryed on my server, but still
the same error.
I even tryed to apply this fix :
http://mootools.lighthouseapp.com/projects/2706/tickets/53-native-element-iframe-extend-frames-without-a-host
but still no luck on extending mootools to the iframe.
Can someone tell me what to do or how to fix this ?
/Martin