Tuesday, May 8, 2007

iframe location denied access

Windows DOM can be such a bitch.

if you do iframe.location = URL... it gives you access denied. you can't cross location on iframes.
what you can do is..

iframe = document.getElementById("iframe_ID_TAG");
iframe.setAttribute("src",fileURL);

No comments: