selectivizr icon indicating copy to clipboard operation
selectivizr copied to clipboard

IE8 error

Open codeofsumit opened this issue 11 years ago • 2 comments

Getting an error "access denied"

selectivizr.js, Line 389

tested on IE10 (IE8 mode), Windows 7, jQuery 1.10.3, latest selectivizr (downloaded today)

// --[ loadStyleSheet() ]-----------------------------------------------
    function loadStyleSheet( url ) {
        xhr.open("GET", url, false); // This is the line that causes the error
        xhr.send();
        return (xhr.status==200) ? xhr.responseText : EMPTY_STRING; 
    };

Probably because i loaded the script locally, not sure though.

codeofsumit avatar Aug 07 '13 13:08 codeofsumit

I also get and Im not running it locally. My site is running over HTTPs

htmlr avatar Apr 04 '14 05:04 htmlr

What is the URL? When you say locally, is it http://localhost/... or file://...

From the homepage:

Style sheets MUST be hosted on the same domain as the page due to browser security restrictions. Likewise, style sheets loaded using the file: protocol will not work.

KieranGreenwood avatar Mar 20 '17 16:03 KieranGreenwood