Re: [jQuery] IE XML parsing problem

2006-10-19 Thread Angelo Sozzi

Hi Klaus and thanks for the help.

Unfortunately the fix did not work. I had lifted the XML traversing code
from this forum:
http://www.nabble.com/RSS-Feed-Reader-tf1831386.html#a5189745

I but for him it seemed to work in IE, so I put his code on my server and
tried myself. What seems to happen is that jQuery R89 works without a hitch
but jQuery R248 throws the IE error:

JQuery R89 demo:   http://www.sozzi.cn/jquery/feed_reader.html
JQuery R248 demo: http://www.sozzi.cn/jquery/feed_reader1.html

Unfortunately R89 breaks my other code (has a fit with [snip]...}, settings
|| {}); [snip] at http://www.sozzi.cn/jquery/fish.fn.trial3.html
and I'm not adept enough at Javascritping to look into the jQuery core code.

Hope this helps to get thinks fixed soon!

Thanks again

Angelo



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
-- 
View this message in context: 
http://www.nabble.com/IE-XML-parsing-problem-tf2469241.html#a6902245
Sent from the JQuery mailing list archive at Nabble.com.


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


Re: [jQuery] IE XML parsing problem

2006-10-18 Thread Klaus Hartl
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/