I do so.

$('#iframe').load(function(){ $(this).contents().find('body').bind('callmod',function(){ alert('Yahoooo!!!!'); }); }); 

And in the frame itself I am creating an event.

 $('body').trigger('callmod'); 

And in short does not work.

If I cling to the standard one, click then works, and for some reason, it doesn’t knit its events for some reason ...

    1 answer 1

    Sori for the false alarm, I found what was the matter, I'll press it to someone, it will also be useful.

    The thing is that I loaded my jQuery into the frame, respectively, these are completely different instances of objects. Therefore, everything is solved quite simply.

     $(document).bind('callmod',function(){ alert('Yahoooo!!!!'); }); 

    In the frame itself.

     parent.$(parent.document).trigger('callmod'); 
    • can you drop the code with this solution? I can not use this in myself - Artem Holinka