Why is the following not working:
//iframe: window.parent.$(document).trigger(\'complete\'); //parent window: $(document).bind(\'complete\', function(){ a
The way events are tracked, you can only trigger or receive events on the same document.
try
window.parent.$(window.parent.document).trigger('complete');