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)
Change History (12)
Changed 15 years ago by
Attachment: | xmlgallery.htm added |
---|
Changed 15 years ago by
Attachment: | xmlgallery.2.htm added |
---|
comment:1 Changed 15 years ago by
Changed 15 years ago by
Attachment: | gallery.js added |
---|
comment:2 Changed 15 years ago by
I accidentally added the same file twice. xmlgallery.htm and gallery.js should help out.
comment:3 Changed 15 years ago by
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
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
Attachment: | image_info.xml added |
---|
comment:5 Changed 15 years ago by
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
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 :)
There's no javascript in the file you included.
But maybe this helps: http://groups.google.com/group/jquery-en/browse_frm/thread/95718c9aab2c7483/af37adcb54b816c3?lnk=gst&q=parsexml#af37adcb54b816c3