[jQuery] jQuery Ajax throws parseerror in IE
When using jQuery Ajax, I am receiving a parseerror in IE (Firefox &
Safari work). Has anyone run into this before - and know how to fix
it? Or something I can at least try.
CODE >>
object = {
path : 'data.xml',
data : 'lat=40.935&lng=-125.000'
}
$.ajax({
url: object.path,
data: object.data,
type: 'GET',
dataType: 'xml',
timeout: 1000,
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert('Error loading data: ' + textStatus);
},
success: function(xml){
...
}
});
OUTPUT >> 'Error loading data: parseerror'