[Seaside] calling a JS function
Johan Brichau
johan at inceptive.be
Wed Sep 7 19:55:57 UTC 2011
Try this:
(Dictionary newFrom: {'custom' -> (JSStream on: 'doSomething')}) asJson.
I would want to know if there is a better way.
On 07 Sep 2011, at 21:31, Milan Mimica wrote:
> I need to pass s JS function to some jQuery widget. I don't want to
> inline it, but instead have it separate in a file.
>
> The problem is:
> (Dictionary newFrom: {'custom' -> #doSomething}) asJson.
> produces:
> {"custom":"doSomething"}
> while I need:
> {"custom":doSomething} (without quotas)
>
>
>
> --
> Milan Mimica
> http://sparklet.sf.net
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
More information about the seaside
mailing list