PDA

View Full Version : Flash and Iframe



Hakushi
June 10th, 2008, 01:58 PM
Hi there,

so, i've a problem with an iframe and a flash header. For an ads tool that i currently work on, i need to display a Flash header within a html+javascript content trough an iframe.
The user sets up his ads through our tool, and we give him an iframe tage which call a php file (static.php) with a reference code to generate the proper html+javascript for this ads.

The problem his, if i call directly the static.php, i get my ads in its good shape, but if i try to use the iframe, it ****s up all the ads, and javascript return this error:
Error: uncaught exception: Permission denied to call method Location.toString

Anyone have a idea of what causes this bug? (It works on IE and Safari)

ahmednuaman
June 10th, 2008, 06:44 PM
Can I have a look at your code?

shadedecho
August 14th, 2008, 03:26 PM
FYI... this is a Mozilla/Flash type bug being tracked/discussed here: https://bugzilla.mozilla.org/show_bug.cgi?id=434522

flashdaddy
August 28th, 2009, 01:50 PM
Hi there,

so, i've a problem with an iframe and a flash header. For an ads tool that i currently work on, i need to display a Flash header within a html+javascript content trough an iframe.
The user sets up his ads through our tool, and we give him an iframe tage which call a php file (static.php) with a reference code to generate the proper html+javascript for this ads.

The problem his, if i call directly the static.php, i get my ads in its good shape, but if i try to use the iframe, it ****s up all the ads, and javascript return this error:
Error: uncaught exception: Permission denied to call method Location.toString

Anyone have a idea of what causes this bug? (It works on IE and Safari)

Did you ever get this issue resolved? I'm running into the same thing.

Swooter
August 29th, 2009, 12:58 PM
Getting the current location.href of the page that contains the iframe from a page inside the iframe is impossible if the page is from another domain.