[mochikit] Re: Walk child nodes of an element

2007-12-10 Thread machineghost
Would something like this work? function recursiveDigForText(someElement){ if(someElement.firstChild.tagName) return someElement.innerHTML; else return recursiveDigForText(someElement.firstChild); } On Dec 10, 7:53 am, JS [EMAIL PROTECTED] wrote: Hi: I'm quite new to

[mochikit] Re: Walk child nodes of an element

2007-12-10 Thread Jason Bunting
To what end do you want to get at the text? If you simply want to grab it, use scrapeText()... Jason -Original Message- From: mochikit@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JS Sent: Monday, December 10, 2007 8:53 AM To: MochiKit Subject: [mochikit] Walk child

[mochikit] Re: Walk child nodes of an element

2007-12-10 Thread JS
Jason: Thanks for the tip. scrapeText did exactly what I was looking for. Machineghost, thanks for your input as well. I was working out the details of that implementation, but thought the scrapeText was a cleaner way for me to handle it. -Jim On Dec 10, 12:32 pm, Jason Bunting [EMAIL