Bug Tracker


Ticket #2365 (closed bug: worksforme)

Opened 6 years ago

Last modified 5 years ago

xml selector issue with IE7 (IE6 also ?)

Reported by: lideln Owned by:
Priority: major Milestone: 1.2.4
Component: ajax Version: 1.2.3
Keywords: Cc:
Blocking: Blocked by:



I tried my jQuery ajax code (that was working fine in firefox) under IE7. When trying to get a tag content from my xml answer, I get empty string (NOT in firefox but in IE7). This is a simple request that returns a <result>blahblah</result> result, and I try to get result with "var result = $('result', data).text();".

Maybe I missed something, but it does not work (but when displaying the response text, I can see it is good - which is normal since it works in FF)

Change History

comment:1 Changed 6 years ago by spinal007

Have you tried...

  1. var result = $('result', data).text();
  2.  http://dev.jquery.com/wiki/Plugins/toXML

comment:2 Changed 6 years ago by flesler

returns a <result>blahblah</result> result

It doesn't include a starting "xml" tag ? if so, that could be it.

comment:3 Changed 6 years ago by davidserduke

Needs more of a test case. What exactly is the 'data' variable? Is it an XML doc or the text string or $(--text string--)? The second two will fail. The first should work. I believe the starting XML tag is optional, but what is the mimetype returned by the web server? In short, this needs a better test case.

comment:4 Changed 5 years ago by brandon

  • Status changed from new to closed
  • Resolution set to worksforme

Please feel free to repoen with a test case illustrating the issue you are having.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.