>  Is there an easy way to tell that the iframe has been loaded (e.g. some
>  event that gets fired) ?
>  I am able to poll the frame, catch the cross domain permission exception,
>  etc....
>  but it seems a bit messy.

Trap the load event for the iframe:

var f = $('#postFrame')[0];
f.attachEvent ? f.attachEvent('onload', onFrameLoad) :
f.addEventListener('load', onFrameLoad, false);
...

function onFrameLoad() {
  // do stuff
};

Reply via email to