Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Iframe Permission Denied


  • From: elmuchacho at gmail.com (Laurent Muchacho)
  • Subject: [Javascript] Iframe Permission Denied
  • Date: Thu Aug 25 05:29:22 2005

Hi Tim,

>From what I know you will not be able to fix this.
Mainly what is happening is that when yahoo load into your iframe you loose 
the (property) of this iframe even if it is inside your own page because the 
content of the iframe is on a different domain, then you can not use 
javascript anymore to have any action on this frame.
This is for security reason and I don't think there is a fix around it.

Laurent



----- Original Message ----- 
From: "SkyScanner" <skyscanner@xxxxxxxxxx>
To: "[JavaScript List]" <javascript@xxxxxxxxxx>
Sent: Thursday, August 25, 2005 11:06 AM
Subject: [Javascript] Iframe Permission Denied


> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html><head>
> <meta content="text/html; charset=windows-1252" http-equiv=Content-Type>
> </head>
> <body>
>
> <div id="elem01"><iframe src="http://www.yahoo.com"; width="100%"
> height="300" name="table1"></iframe></div>
>
> <SCRIPT LANGUAGE="JavaScript">
> alert('I am pausing. Click me when the page loads...');
> table_url = 'http://www.google.com';
> table1.src = table_url;
> </script>
>
> </body>
> </html>
>
> When running the above, the Yahoo page loads into my Iframe OK, but after
> clicking on the alert, instead of the Google page loading, I get an error
> 'Permission denied'.
>
> How can I fix this, please?
>
> Tim in Ireland
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript