Javascript Permission Denied Error in IE

I am embedding this code:

onto a page and the script works fine in FF but I'm getting a Permission Denied error in IE. (Line 105, Char 3)

This is a stock ticker script that parses the csv stock feed from yahoo. The data is successfully being pulled in to this page:

Any suggestions on this IE issue?

Who is Participating?
tomaugerdotcomConnect With a Mentor Commented:
Looking at your code again, I'm thinking that it's definitely something in this script:
that is causing the problem. Something invoked by doUpdate() probably.

I have the feeling we're getting into a cross-domain data load issue. In a nutshell, you might be breaking a security sandbox setting if you're using Ajax to grab data from another service or server than the one your page is on.

Take a a look at these links to see if they put you on the right track:

From:'GET', '', true);

The first parameter of the call to open() is the HTTP request method  GET, POST, HEAD or any other method you want to use and that is supported by your server. Keep the method capitalized as per the HTTP standard; otherwise some browsers (like Firefox) might not process the request. For more information on the possible HTTP request methods you can check the W3C specs

The second parameter is the URL of the page you're requesting. *********As a security feature, you cannot call pages on 3rd-party domains. Be sure to use the exact domain name on all of your pages or you will get a 'permission denied' error when you call open(). A common pitfall is accessing your site by domain.tld, but attempting to call pages with www.domain.tld.

The third parameter sets whether the request is asynchronous. If TRUE, the execution of the JavaScript function will continue while the response of the server has not yet arrived. This is the A in AJAX.


So it looks like you have to explore cross-domain solutions. There are two notable approaches, which

1. use a proxy. Instead of calling the remote source directly, call a PHP script on your domain that gets the information from the remote domain
2. using JSON, put the remote url into the src attribute of a <script> tag.

You can learn more about these approaches here:

Looking at your code though, I'm struggling to find where you are running into these cross-domain issues. The most obvious thing that jumps out at me is that
is seen as a different domain from

If you are using the non-www shortcut, I suggest switching it to www.

Hope this puts you on the right track. Without more debugging on your part I don't think I can offer much more advice
If you're testing this locally, you may get permission denied issues because of the scripting hasards. This is a setting you can override in IE settings. But you should try testing this on the webserver - sometimes these issues only show up when you're testing locally.

The other time I've encountered this was with some Symantec enterprise anti-virus. It actually over-wrote certain bits of JS code on-the-fly. Check to see whether you're running a Symantec anti-virus - if so, that could be the cause of your issues. Other users that do not have this installed will not be experiencing the problem.

Otherwise, check out your security settings. If you work for an Enterprise, perhaps your corporate security policy is set unusually high. Check with your IT admin on this issue.
corywatiloAuthor Commented:
Thanks for the tips. However, I am trying to pull from a web server, not locally. I have also tried from computers with anti-virus protection, and I also tried pulling down all security and privacy levels to no avail.

Any other ideas? I would hope it's something relating to the script that can be tweaked rather than something that would have to be modified on every single computer. Thanks!
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Yeah, I hear you.

I also got access denied errors when trying to change window size on certain types of windows. So, maybe you could help by specifiying what it is that your script is doing specifically at the time the error is thrown.
corywatiloAuthor Commented:
Happens onload.
Okay, what are you doing onload?
corywatiloAuthor Commented:
I just realized that my original post is a bit confusing. I mentioned I am trying to embed that page and it's not working - it doesn't even work in IE standalone as it is.
corywatiloAuthor Commented:
Your last comment nailed it. Everything was absolute linked. I simply removed the absolute linking to make it relative and it worked. Who woulda thought? Thanks so much!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.