Why is the following not working:
//iframe:
window.parent.$(document).trigger(\'complete\');
//parent window:
$(document).bind(\'complete\', function(){
a
You might try adding a triggering function in the parent document, then calling it as a regular function from the iframe. This should ensure you're triggering the event in the right document context.
// In Parent
function triggerComplete () {
$(document).trigger('complete');
}
// In iFrame
window.parent.triggerComplete();