473,789 Members | 2,106 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript permission denied

83 New Member
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.toStri ng' 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.toStri ng' 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 4525
gits
5,390 Recognized Expert Moderator Expert
where is the location.toStri ng() 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 New Member
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 Recognized Expert Moderator Expert
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 New Member
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 Recognized Expert Moderator Expert
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
9659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10400
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10134
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9977
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9011
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5413
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5545
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4084
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.