jQuery: The Write Less, Do More JavaScript Library

Ticket #2365 (new bug)

Opened 6 months ago

Last modified 3 months ago

xml selector issue with IE7 (IE6 also ?)

Reported by: lideln Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.4 Component: ajax
Version: 1.2.3 Keywords:
Cc: Needs: Review

Description

Hi,

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)

Attachments

Change History

Changed 5 months ago by spinal007

Have you tried...

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

Changed 4 months ago by flesler

returns a <result>blahblah</result> result

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

Changed 3 months 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.

Note: See TracTickets for help on using tickets.