Callback after calling attr method
I'm using the following code to refresh an iframe:
$("#support-link").click (function () {
$("#zenbox_iframe").attr ({
src: $("#zenbox_iframe").attr ("src")
});
Zenbox.show (); // displays iframe
return false;
});
The problem is that Zenbox.show () gets called before the src attribute is fully loaded, so the refresh is visible to the user.
Is there any way to setup a callback when the iframe.src is fully loaded that I can call Zenbox.show() in ?
Thanks,
Cliff