[Seaside] Passing arguments from javascript

Esteban Maringolo emaringolo at gmail.com
Mon Nov 2 14:36:49 UTC 2020


Hi all,

The #callback:value: message is the way to go.

But it doesn't have to be hidden, it could be any value, or even it
could be a JSON string that you parse on the other side.

Regards!

Esteban A. Maringolo

On Mon, Nov 2, 2020 at 10:54 AM Annick Fron <list at afceurope.com> wrote:
>
> Hi,
>
>         How is it possible to pass a javascript result to seaside ?
>
>         I have successfully tried to use a hidden field as a vehicle, but is there a more elegant way ?
>
>   html button
>         id: html nextId;
>         onClick: ((html jQuery id: 'toto' ) value: '3' );
>         onClick: (html jQuery ajax callback: [:v | v inspect] value: (html jQuery id: 'toto') value);
>         with: 'Click toto'.
>     html hiddenInput id: 'toto’.
>
> Annick
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list