Luciano Ruete a écrit :
> Take me a while to figure out that i need to generate an explicit match
> (ussing '()') to make serialize work, but no complains about no docs, couse
> im ussing svn code here :-).
Yes there's a lot to do in the documentation field. Every contribution
is welcome :).
> Ok, simple example attached, error reproduced on firefox 1.5 with firebug
> extenstion.
>
> Maybe it is because my use of javascript, maybe not, im relative new to
> javascript.
> [snip]
> for (node in getElement(e).childNodes){
> child = getElement(node);
> if (! isUndefinedOrNull(child)) {
> log (child.id);
> }
> }
Your problem is here, you can't iterate through childNodes like this.
You can try this:
map(function (child) {
if (! isUndefinedOrNull(child.id)) {
log (child.id);
}
}, getElement(e).childNodes);
--
Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---