[jQuery] iframe and events
Hello everybody!
I have a problem with iframes and jquery. I have on my body a div
(class="restoVentana") where I load an iframe. This div have two bind
with two events ("ponerFondo" and "quitarFondo").
$(".restoVentana")
.bind("ponerFondo",function( ) {
ejecutar.ponerFondo( );
})
.bind("quitarFondo",function( ) {
ejecutar.quitarFondo( );
});
In the iframe, in $(document).ready( ), I want trigger this event,
"ponerFondo" and when the iframe is loaded I want trigger
"quitarFondo". But I don't know how. Is it possible?? Any idea??