Bug Tracker

Opened 15 years ago

Closed 14 years ago

#2365 closed bug (worksforme)

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:
Blocked by: Blocking:



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 (4)

comment:1 Changed 15 years ago by spinal007

Have you tried...

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

comment:2 Changed 15 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 15 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 14 years ago by brandon

Resolution: worksforme
Status: newclosed

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

Note: See TracTickets for help on using tickets.