jadeitedrake0
2010-02-08 21:22:34 UTC
In my parent window i got this in the 'onload' function. There is an
HTML iframe element with id='frame'
function init( ) {
iframeElement = document.getElementById('frame')
iframeElement.src='http://childWindowFile.php'
$(iframeElement.contentWindow).bind("LOADED", this, foo)
}
function foo( ) {
alert("I WANT THIS TO WORK");
}
In my child window i got this in the 'onload' function.
funciton init( ) {
...
...
...
$(window).trigger("LOADED");
}
This does not work, but, is there a way to get user-defined-events to
work in a similar, cross-window fashion.
HTML iframe element with id='frame'
function init( ) {
iframeElement = document.getElementById('frame')
iframeElement.src='http://childWindowFile.php'
$(iframeElement.contentWindow).bind("LOADED", this, foo)
}
function foo( ) {
alert("I WANT THIS TO WORK");
}
In my child window i got this in the 'onload' function.
funciton init( ) {
...
...
...
$(window).trigger("LOADED");
}
This does not work, but, is there a way to get user-defined-events to
work in a similar, cross-window fashion.