PC Review


Reply
Thread Tools Rate Thread

Access Denied error in IE6 when try to access to a IFRAME without src

 
 
Diego Fernández Santos
Guest
Posts: n/a
 
      9th Feb 2008
This problem only happens in IE6, in Firefox it works well. It happens
when I change the document domain and then try to access to an
existing IFRAME, without src attribute.

How can I specify the iframe content of a IFRAME without src if the
parent can not access to it?

To see the error you have to put the next document in a web server
with the domain "www.microsoft.com", you can create a new entry in the
hosts file.

<html>
<head>
<script type="text/javascript">
document.domain = "microsoft.com";
</script>
</head>
<body>
<iframe id="myFrame"></iframe>

<script type="text/javascript">
window.onload = function() {
var f = document.getElementById('myFrame');
f.contentWindow.document.body.innerHTML = "Perfect!";
}
</script>
</body>
</html>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay Microsoft ASP .NET 2 20th Aug 2007 08:38 PM
Error 403 Forbidden - Access Denied by Access Control List Harroguk Windows XP Help 4 11th Aug 2005 02:22 PM
JavaScript;resizeTo;Access denied;IFRAME HMEG Windows XP Internet Explorer 1 21st May 2004 11:09 AM
Error 5: Access Denied for Remote Access Connection Manager Service Aubrey Windows XP Networking 1 2nd Dec 2003 11:24 PM
iframe access from parent page - Access is denied Ben Microsoft Access Security 1 7th Nov 2003 01:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:26 PM.