Welcome to WebmasterWorld Guest from 54.224.230.193

Forum Moderators: incrediBILL

Message Too Old, No Replies

Iframe content won't show in IE8, but works in FF and Chrome

     
3:09 pm on May 11, 2010 (gmt 0)

New User

5+ Year Member

joined:May 11, 2010
posts: 2
votes: 0


I have a webpage that uses an iframe. The iframe links to an external website. Problem is that the iframe content doesn't show in IE8, but it does in both FF and Chrome.

Code:

<iframe src ="http://www.example.com/index.asp" width="100%" height="100%" frameborder="0"></iframe>

It works fine if I add the remote domain to my IE trusted zone.

How can I get it to work in IE without having to add the remote domain?

/Carl

[edited by: tedster at 3:41 pm (utc) on May 11, 2010]
[edit reason] switch to example.com - it cannot be owned [/edit]

3:41 pm on May 11, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


hello weblance, and welcome to the forums.

Are you testing this on a server?
4:21 pm on May 11, 2010 (gmt 0)

New User

5+ Year Member

joined:May 11, 2010
posts: 2
votes: 0


Yes both websites are on a server - different ones.

The index.asp file looks like this:

<%Option Explicit%>
<%Response.Expires=-1%>
<!-- #include File=InitFile.Lib-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fo" lang="fo">

<head>
<title>Online Katalog</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<frameset rows="*,<%=Session("output").HeightBF%>">
<frameset cols="<%=Session("output").WidthLF%>,*">
<frame name="Contents" src="LFStock.asp" frameborder="0" />
<frame name="MainFrame" src="CFStock.asp" frameborder="0" />
</frameset>
<frame name="Bottom" scrolling="no" noresize="noresize" src="BFStock.asp" marginwidth="0" marginheight="0" frameborder="0" />
<noframes>
<body>
<p><%=Session("Output").Label(901)%></p>
</body>
</noframes>
</frameset>
</html>