scottjehl/Respond

Doesnt work with embedded IE8

Opened this issue · 2 comments

I have a need to run webpage on the IE8 embedded in the application (windows), I've found that the webpage doesn't work unless I remove the respond library (on the standalone IE8 the webpage works). When I did some troubleshooting I've found that problem lies in the ajax method when it calls req.open("GET", url, true);. I've put the try catch block around it and spit out alert with error details then I've got following:

---------------------------
Message from webpage
---------------------------
-2147024891
Access is denied.
---------------------------
OK   
---------------------------

Are you aware of such behaviour, can you suggest workaround/fix for this?

the document.location is reported as: file:///C:/.../.../index.html

The workaround was to use jquery's get method

        ajax = function (url, callback) {
            //jquery
            try {
                $.get(url, callback);
            } catch (e) {
                alert("catch $.get\n" + e.number + "\n" + e.description);
            }
        }