On 2/21/07, Pearl <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am facing a weird problem. There are multiple users shown as rows in
> a table. When I am clicking on each row of a table, an edit box opens
> up in that row showing that particular user details. All was working
> fine, but lately it began throwing an error. I am not able to find
> what is causing this error. All I have done is that I have added a lot
> more functions to the javascript file. I have also replaced mochikit
> 1.3.1 to 1.4.
>
> While clicking the edit button I am passing a dictionary which is of
> the form {'username':'aby', 'password':'pass',
> 'address':'address','email':'[EMAIL PROTECTED]'......}
This has nothing to do with MochiKit. It's incorrect use of Kid. Kid
is not a JavaScript serializer and you can't use it as such. You
should ask on the TurboGears list if you need suggestions for how to
do it.
Basically you need to use JSON instead of just crossing your fingers
and hoping that Kid magically does the right thing with a dict,
because it definitely won't. You can use JSON in the page, it doesn't
have to be a separate request, but it definitely has to be JSON.
-bob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---