On Nov 16, 4:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> }function makeupdate(userlist)
> {
>         var list = SELECT({'id':'userlist'},map(OPTION, userlist));
>         swapDOM('userlist', list);
>
> }
[snip]
> (Is it that javascript cannot understand a python list)

Nope, it's that you don't understand mochikit! :)

OPTION takes two argumnets, the first being a mapping of attributes,
the second being the option's content.
In calling map(OPTION, userlist), it's only getting one. It probably
throwing an error - check your console.

try

function makeupdate(userlist)
{
         var list = SELECT({'id':'userlist'}, map(partial(OPTION,
null), userlist));
         swapDOM('userlist', list);
}

The partial(OPTION, null) returns function which needs only one extra
param - a user from your list.

HTH


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to