zoltan-dulac/cssSandpaper — Issue #4: Access is denied for IE8
Author: makapacs
Created: 2011-12-11 21:19:15+00:00
State: open

Hi,

First Issue i got was Exception 'Access is denied' when running line:

var xhr = XMLHelpers.getXMLHttpRequest(node.href, null, "GET", null, false); in cssSandPaper.js

Solution posted by Floyd Johnson at http://stackoverflow.com/questions/1482177/problem-with-ie8-using-ajax

From Floyd Johnson:
In IE8 on Vista at least, the user needs to turn off the "native XMLHTTP support" (sounds counterintuitive). To do this:

Summon "Internet Options", then click the Advanced tab.
Scroll down to the "Security" set of checkboxes (this could be a while), and uncheck "Enable native XMLHTTP support". You may need to also uncheck "Enable Integrated Windows Authentication" (also in the Security section) and restart IE8, per the discovery at http://community.xajax-project.org/topic/8540/access-is-denied-error-in-ie8/
You might have your web application detect if this needs to be done by looking for a JavaScript exception whose "message" property is "Access is denied" (or something of that ilk) when an attempt is made to POST to an HTTPS URL via your AJAX object.

(With Prototype, you would add an onException key-value pair to the same place as onSuccess and onFailure. It would look something like: onException:function(irrelevant_object,exc){alert(exc.message);}

The function body will be much more involved than displaying the essence of the thrown exception.)

If the relevant exception is thrown, put up a box telling the user how to turn off the XMLHTTP item in his/her copy of IE8.