what about function findAllChild() { getChild(document.getElementById('mySVG'); getChild(document.getElementById('myClonedSVG'); }
Am I missing something? Erwan TROEL a écrit : >this code traverse only a parent to his children but how to > when there are many parents > ----- Original Message ----- > From: Jérôme Tricand de la Goutte > To: svg-developers@yahoogroups.com > Sent: Thursday, June 02, 2005 11:43 AM > Subject: Re: [svg-developers] tree and svg > > > Hi Erwan, > > What kind of information do you plan to get with your functions? > > but if you want a recursive function, try this > > function getChild(obj) > { > $tab=obj.childNodes; > if($tab.length!=0) > for $i=0; $i<$tab.length; $i++) > getChild($tab.item($i)); > else > alert('No Child for me ... '+obj); > } > > and start it with "getChild(document)" > > I'm sure this could be optimize, ask the gurus.... > > Hope it helps > > Jérôme > > -- > Jérôme Tricand de la Goutte > > Société Logatique > 50 rue Marcel Dassault > 92100 Boulogne-Billancourt > > 01 46 21 59 59 > > > > Erwan TROEL a écrit : > > >i' m looking for a code which read a svg children by children with > >recursivity > > > > > >[Non-text portions of this message have been removed] > > > > > > > >----- > >To unsubscribe send a message to: [EMAIL PROTECTED] > >-or- > >visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > >---- > >Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > -- > Jérôme Tricand de la Goutte > > Société Logatique > 50 rue Marcel Dassault > 92100 Boulogne-Billancourt > > 01 46 21 59 59 > > > > ----- > To unsubscribe send a message to: [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > > > >------------------------------------------------------------------------------ > Yahoo! Groups Links > > a.. To visit your group on the web, go to: > http://groups.yahoo.com/group/svg-developers/ > > b.. To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > >[Non-text portions of this message have been removed] > > > >----- >To unsubscribe send a message to: [EMAIL PROTECTED] >-or- >visit http://groups.yahoo.com/group/svg-developers and click "edit my >membership" >---- >Yahoo! Groups Links > > > > > > > > -- Jérôme Tricand de la Goutte Société Logatique 50 rue Marcel Dassault 92100 Boulogne-Billancourt 01 46 21 59 59 ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/