Just change the width and height of the iFrame from 0, say 500x500...

On Mar 3, 5:01 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> >  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