URL will not load in frameset using IE8
We are currently u开发者_如何学JAVAsing VBulletin 3.6 which loads public pages in iframes within the admin (eg. member profile, who's logged in, etc.).
We've recently completed a redesign of our site and for some reason IE8 in compatability or non-compatability mode will no longer load the public website within the admin via iframes. The admin works fine in firefox and chrome.
Here's a stripped down version of the code which loads our public website in an iframe. It works fine in Firefox, but I can't for the life of me get it working in IE8. Any help would be appreciated.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html dir="ltr" lang="en">
<head>
<script type="text/javascript">
</script>
<title>IFRAME Test</title>
</head>
<frameset framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<frame src="http://www.cardschat.com" name="nav" scrolling="yes" frameborder="0" marginwidth="0" marginheight="0" border="no" />
</frameset>
<noframes>
<body>
<p>Your browser does not support frames. Please get one that does!</p>
</body>
</noframes>
</html>
Your code works fine. The problem seems to be caused by the website you are referencing (http://www.cardschat.com). Maybe they have a script that blocks this kind of requests.
Is there X-Frame-Options option in the header received? If so, iframe will not load content.
More information at: https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header
精彩评论