On 1/30/07, Karsten Patzwaldt <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > > Hi. > > I'm currently trying the following. First, I construct my output HTML > via DOM constructors, i.e. DIV(null, A(...), ...). Then, I'd like to > traverse the constructed DOM tree in order to append "onchange" > attributes to all TEXTAREA and SELECT tags. According to the > documentation, DOM is iterable, and imap iterates over iterables, so I > tried > > list(imap(function(node) { alert(node); return node; }, > iter(DIV(...)))); > > just to see if it works. However, this does not do anything, it > doesn't even trigger an error in FireBug. > > Any hints how to do this properly?
Sounds like you want to use nodeWalk. -bob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---