[jQuery] Ajax IE issue

[jQuery] Ajax IE issue


Hello !
The following code works in Mozilla FF but not IE :
$.ajax({
    type: "GET",
    url: path, // path to JPG
    success: function(data){
        alert('success ' + path);
        $('#currentImage').attr('src', path);
    },
    error: function(xhr, status, ex) {
        var msg = "";
        msg += status + "\n";
        msg += xhr.status + "\n\n";
        msg += ex;
        alert('PATH: ' + path);
        alert('REPORT: ' + msg);
    }
});
What I'm doing is loading an image in ajax way, that way I can display a
loading image in the meanwhile.
In Mozilla FF the process enters the success callback-function,
In IE it enters the error callback-function and get the message 'parse
error' with code '200'.
Thank you for any help !!
--
View this message in context: http://www.nabble.com/Ajax-IE-issue-tf4757688s27240.html#a13605392
Sent from the jQuery General Discussion mailing list archive at Nabble.com.