Hi All,

I'm sorry if this topic has been covered recently (I'm new to the list).

I'm trying to use jQuery to select elements from the responseXML 
attribute of the response object passed into a callback from the YAHOO 
toolkit's XHR manager, and am finding that in IE 7 it never seems to 
find what I'm looking for.  Specifically, it only ever returns the 
element that I passed in as the root of the search.  Here's my example code:

YAHOO.util.Connect('/some/path.xml', {success:success});

function success(response) {
   var doc = response.responseXML;
   var challenge = jQuery(doc).find('challenge');

   // alerts "" on IE 7, and "1b05fc813189493198c049a1088ed3e8" in
   // Firefox
   alert('"' + challenge.text() + '"');
}

where the xml that it's given is:

<?xml version="1.0"?>
<login_challenge>
   <login>
     <challenge>1b05fc813189493198c049a1088ed3e8</challenge>
   </login>
</login_challenge>

Unfortunately this works wonderfully in Firefox, which makes me wish 
that the stuff that I was writing never had to run in IE :)

Thanks for any help,

-trevor

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to