Bug Tracker

Opened 15 years ago

Closed 14 years ago

#3777 closed bug (worksforme)

IE6/7 unable to read xml documents using $.ajax

Reported by: kandrews Owned by:
Priority: major Milestone: 1.3
Component: unfiled Version: 1.2.6
Keywords: ajax, ie6, ie7, xml Cc:
Blocked by: Blocking:

Description

Built a simple photo gallery with XML and Jquery. Works Perfect in Firefox, and displays nothing in IE6/7. I have examined the produced code with FireBug, and it looks exactly as it should.

From the research I have found, it's either an issue with XML being called as ActiveX (which may not be a Jquery bug, just an issue with IE) or something with .html... I don't think that is the answer.

Attached is the source.

Attachments (4)

xmlgallery.htm (1.5 KB) - added by kandrews 15 years ago.
xmlgallery.2.htm (1.5 KB) - added by kandrews 15 years ago.
gallery.js (2.1 KB) - added by kandrews 15 years ago.
image_info.xml (1.0 KB) - added by kandrews 15 years ago.

Download all attachments as: .zip

Change History (12)

Changed 15 years ago by kandrews

Attachment: xmlgallery.htm added

Changed 15 years ago by kandrews

Attachment: xmlgallery.2.htm added

Changed 15 years ago by kandrews

Attachment: gallery.js added

comment:2 Changed 15 years ago by kandrews

I accidentally added the same file twice. xmlgallery.htm and gallery.js should help out.

comment:3 Changed 15 years ago by balazs.endre

As it's said in the link above jQuery can't really parse xml, "It's an HTML parser. Sure, it will do some kind of passable job of parsing some kinds of XML, sort of, in some browsers."

Also, there's all the code you need!

comment:4 Changed 15 years ago by balazs.endre

Sorry, I just noticed that with xml datatype it should really work. Maybe the xml document itself would help the most to identify the problem.

Changed 15 years ago by kandrews

Attachment: image_info.xml added

comment:5 Changed 15 years ago by kandrews

The reason for the ticket, in my opinion, is the fact that they have a $.ajax function that is supposed to read from XML files. If it doesn't read it cross-browser, then it appears to be a bug to me. I haven't had a chance, but I will try the parseXml function from the above link, but I'm not sure it's doing what I want here.

comment:6 Changed 15 years ago by balazs.endre

I tried your code as it is and for me it works in IE as well! Maybe you have ActiveX turned off, so ajax request aren't possible that way. But if you post it on the mailing list more people could help :)

http://groups.google.com/group/jquery-en

comment:7 Changed 15 years ago by kandrews

Thanks for your help.

comment:8 Changed 14 years ago by dmethvin

Resolution: worksforme
Status: newclosed

Closed, working.

Note: See TracTickets for help on using tickets.