HighDots Forums  

DOM: nextsibling problem

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss DOM: nextsibling problem in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Julius Mong
 
Posts: n/a

Default DOM: nextsibling problem - 10-20-2004 , 01:48 PM






Hi I've located in my code that the line where I'm reassigning nextSib to
nextSib.nextSibling is causing the error "Object required" in IE6... any
ideas why this isn't working? If not this way, how else can I iterate thru
the nodes between <HEAD> nodes in an XML doc?

Thanks,

Julius

------------------------------------------------------------

var x = xmlDoc.getElementsByTagName('HEAD');

var nextSib = x[j].nextSibling ;

for ( nextSib.nodeName != 'HEAD' )
{
...
nextSib = nextSib.nextSibling
...
}






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.