473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Javascript permission denied

83
Hi,

I have an iframe on my page which calls an external website. When the page loads in firefox i see a 'Error: Permission denied to call method Location.toString' in the error console but the page loads nevertheless. I'm assuming therefore this error is 'handled' somehow.

In IE7, the page starts to load in the IFRAME and then at the point the same 'Error: Permission denied to call method Location.toString' is detected the page fails to load.

Since FF handles this well, my question is is there anyway to handle this in IE ?

Thanks in advance
Oct 16 '09 #1
5 4490
gits
5,390 Expert Mod 4TB
where is the location.toString() called? could you show the code please? ... i think fixing the issue will be much better then let it be an error ... so lets fix it for FF and see whether it will work fot IE too ...

kind regards
Oct 16 '09 #2
TimSki
83
thanks for the reply. the problem is that error is on the page within the iframe - ie. a page outside of my control. the page within the iframe is http://www.vivastreet.fr/ if that helps. on its own the page loads fine. i'm guessing that some javascript on http://www.vivastreet.fr/ calls a parent property (or something) but since my page is now the parent there is a cross domain issue which throws the error - only theory though. as i say ff (and chrome) handles this fine but IE cannot
Oct 17 '09 #3
gits
5,390 Expert Mod 4TB
as far as i could see ... when i use a plain page and load the page in question to an iframe i get an error from the script epl-41.js ... which seems to be an adware-script to handle some site-ads? ... in case a script from that page itself throws the error and breaks the loading in IE or another browser ... then i think it cannot be fixed with javascript due to the cross-domain restrictions. you might try to proxy the page serverside and serve it from your domain ... in case it would be worth the effort ... otherwise just open a new window and don't use a frame ...

kind regards
Oct 17 '09 #4
TimSki
83
i do need to use a frame unfortunately. what intrigues me is how ff and chrome are able to handle this problem. if i could figure out how they do that i might be able to apply it to IE.
Oct 17 '09 #5
gits
5,390 Expert Mod 4TB
i doubt that this could be done ... even when some browsers don't handle that error as fatal, others might do so ... don't know much about the crappy IE ... but in this case i guess it is right ... since it stops by the error. to have that fixed the script in the page that is to be loaded should be fixed to avoid the error ... which basicly means that the page should be made 'frameable'. It might be that the original owner of that page might help here or even don't want to have its page loaded in frames ...

kind regards
Oct 22 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.