Re: Passing arguments from javascript
Esteban Maringolo <[email protected]> Mon, 2 Nov 2020 11:36:49 -0300
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CAJMgPCLM3QmDGNXqaaJ=bcEpV=+ZJ2NP-QrVTr9iVugwVtWyKA@mail.gmail.com> |
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 <[email protected]> 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 > [email protected] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside