views:

2380

answers:

2

When using jQuery Ajax, I am receiving a parseerror in IE 6, Firefox works just fine.

My code is like this:

$.ajax({
   url: 'test.xml',
   type: 'GET',
   dataType: 'xml',

   error: function(XMLHttpRequest, textStatus, errorThrown) {
       alert('Error: ' + textStatus + ", " + errorThrown);
   },

   success: function(xml){
        ...
   }
});

The output is "Error: parsererror, undefined"

+1  A: 

Just a shot in the dark, but what happens whan you rename the XMLHttpRequest argument?

reinierpost
+3  A: 

Ok, this happens when I execute the code in localhost. When I upload the code to the remote server works OK.

Alotor