[jQuery] Re: problem with jquery selector in IE
Thanks for the quick response. Too bad the Firefox behavior isn't what is supposed to happen...
[jQuery] Re: problem with jquery selector in IE
jQuery doesn't officialy support XML parsing, it just happens to 'happen' :) Try $(xml).contents().filter('url') instead, might work. On Nov 3, 2:56 am, glowbal [EMAIL PROTECTED] wrote: To be more explicit, here is the relevant code: function displayURL(xml) { try { alert(xml); var result = $(url, xml).text(); alert(result); } catch (ex) { alert(ex); } } In the above code the alert(xml) call shows the string described in my previous post. The xml string is being passed in correctly. However, the alert(result) call shows that the result variable is empty, even after the assignment. In addition, IE7 has this same problem. (I originally noticed this problem in IE6.) In Firefox, everthing works fine. The alert(result) call shows that result is assigned the text between the url/url tags as expected. Again, any help with this problem is greatly appreciated.
[jQuery] Re: problem with jquery selector in IE
To be more explicit, here is the relevant code: function displayURL(xml) { try { alert(xml); var result = $(url, xml).text(); alert(result); } catch (ex) { alert(ex); } } In the above code the alert(xml) call shows the string described in my previous post. The xml string is being passed in correctly. However, the alert(result) call shows that the result variable is empty, even after the assignment. In addition, IE7 has this same problem. (I originally noticed this problem in IE6.) In Firefox, everthing works fine. The alert(result) call shows that result is assigned the text between the url/url tags as expected. Again, any help with this problem is greatly appreciated.