Angelo Sozzi schrieb: > Hi, > > I've managed to finish my first plugin and re-learn javascript at the same > time. So I'm not quite sure if this is a Javascript or jQuery issue. > > The plugin loads external content from HTML or XML data using an AJAX call > to the file name generated from the LI element clicked. > DEMO: http://www.sozzi.cn/jquery/fish.fn.trial3.html > > It works perfectly for the HTML variant but the XML fails in IE throwing a " > Object doesn't support this property or method" error. > It seems to happen in the XML call and parse function on the line finding > the "link" within the XML object: > > (snip)... > $.get(XMLurl, function(xml){ > $("site", xml).each(function(){ // step > through each 'site' xml > node > $(this).find("link").each(function(){ // find 'link' > insidet the 'site' > node and turn it into html > settings.parsedXML += "<div class='link'> > "+$(this).text()+" "; > ....(snip) > > Any thoughts on what I'm doing wrong?
You don't do anything wrong. This is a known bug: http://jquery.com/dev/bugs/bug/164/ Work is in progress on that I think... If it is not yet fixed in latest SVN, I can provide a hotfix - I ran into that as well :-) settings.parsedXML += "<div class='link'> " + (this.firstChild.data || $(this).text()) + " "; -- Klaus _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/