Actually there is a code where we load the xml file, then parse it. But the line

$("#manifest_"+current_i).find('organization>item').each(function(){ 

IE just jumps like there are no such elements at all. On other browsers (chrome, firefox, opera) everything works. What could be wrong?

 $("#manifest_" + i).load(i + '/imsmanifest.xml', function () { $("#manifest_" + current_i).find('organization>item').each(function () { xmlParse(this); $("#content").append(mylist); mylist = ''; }); }); 

Supplemented.

Hmm ... apparently it does not find, tk. changing the design to

 $("#manifest_"+current_i+' organization>item').each(function(){ 

nothing happens either.

 alert($(this).find('organization').html()); 

says there is empty, that is not true.

  • IE? Not surprising! - Alex Kapustin

1 answer 1

Check the content-type of the response that is being parsed. You can do it like this:

 $(document).ajaxComplete(function(e, x) { alert(x.getResponseHeader("Content-Type")); }); 

IE is sensitive to it. Most likely you do not have "text / xml".

  • thanks, it helped! - xcorter