Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

(IE11Preview)cannot read local files with ajax method of JQuery

$
0
0

I'm creating a program to access local files using the ajax method of JQuery.
This program is working correctly in IE10 and older version.

But this program shows the message "Error:Access Denied" in IE11Preview.
I can read with ActiveX or IE10 Compatibility mode.

I think IE11 limit to access local files with XMLHttpRequest.
But I could not find the change in Internet Explorer 11 Preview Developer's Guide.
http://msdn.microsoft.com/en-us/library/ie/bg182636(v=vs.85).aspx

How can I read local files with ajax ?

$.ajax({
    url: 'Sample.txt',
    type: 'GET',
    dataType: 'TEXT',
    success: function (data) {
        //something
    },
    error: function (req, text, error) {
        alert(error);
    }
}); 


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>