Focal Point
[CLOSED] javascript on iframe with IE7

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/315109411

May 14, 2009, 02:20 PM
bressopa
[CLOSED] javascript on iframe with IE7
Hi everybody.

i had a javascript to empty an iframe on IE

document.getElementById('iframe1').src="" which worked AND now on IE7 my iframe is not empty why?

Has someone solution !

THANKS

This message has been edited. Last edited by: Kerry,


Regards,
Patrick BRESSON.

DS-MRE 7.1.4 on Windows XP
May 14, 2009, 02:26 PM
Francis Mariani
This might be an Internet Explorer 7 issue. I used Google to search for 'document.getElementById internet explorer 7 iframe':

Internet Explorer 7 blocks cross-domain iframe to parent communication

[RESOLVED] IE7 iframes


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
May 18, 2009, 11:05 AM
dlogan
This sounds a little different from the described problem.

You should be able to control the SRC attribute of an iframe embedded on a page without an issue even with the new cross-domain issues.

Can you try the following:
document.getElementById('iframe1').src="about:blank"

That should force it to use the default, built in blank page.


WF 71.x, 76.x, 7701, 8.0 Beta OS: Linux, Win2k3, Win2k, Win2k8, WinXP