Why is the following not working:
//iframe: window.parent.$(document).trigger('complete'); //parent window: $(document).bind('complete', function(){ alert('Complete'); });
while the following IS working:
//iframe: window.parent.$('body').trigger('complete'); //parent window: $('body').bind('complete', function(){ alert('Complete'); });
?
The way events are tracked, you can only trigger or receive events on the same document.
try
window.parent.$(window.parent.document).trigger('complete');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With