[jQuery] Re: .find() not working on link node in XML document

2009-09-11 Thread Sjeiti
I encountered the same problem last week. It's even stranger with a node named 'image', somehow that will get converted to img. I worked around it like this: [code]var iStart = data.indexOf(?xml); var sData = data.substr(iStart).replace(/(image\)/g,oSettings.rplImage

[jQuery] Re: .find() not working on link node in XML document

2009-09-11 Thread Michael Geary
You're using an HTML parser, not an XML parser, so it isn't too surprising that it treats some tagnames specially. It can't hurt to try an XML parser instead: function parseXML( xml ) { if( window.ActiveXObject window.GetObject ) { var dom = new ActiveXObject(

[jQuery] Re: .find() not working on link node in XML document

2009-09-11 Thread Jeff
Thanks for the tip Michael. What I ended up doing was switching from $.get to $.ajax, and specifying my dataType as XML, and it works perfect now: http://docs.jquery.com/Ajax/jQuery.ajax#options