[Seaside] Submitting forms using Ajax

Stevie Bornschein steviebornschein at googlemail.com
Wed May 18 12:53:16 UTC 2011


Hi Sebastian,

thanks for replying so fast. Sadly I’m not so versed in SeaSide yet—could
you explain further? I already tried to use the triggerForm message, but I
don’t exactly know what to do in order to submit the form eventually.

Many thanks,
Stevie

2011/5/18 Sebastian Sastre <sebastian at flowingconcept.com>

>
> onReactingToSomethingOn: html
>  | anUpdater |
>
> anUpdater := self makeUpdaterOn: html.
>
> anUpdater triggerForm: 'yourFormId'
>
>
> gives you ideas?
>
> sebastian <http://twitter.com/#%21/sebastianconcpt>
>
> o/
>
>
>
> On May 18, 2011, at 9:42 AM, Stevie Bornschein wrote:
>
> Hi there,
>
> I am building a Magritte form and want to submit it using Ajax. The reason
> is that, depending on the value of a select list, some of the other inputs
> of the form have to be hidden or visible. In case users change the value of
> the select list I want to save their changes and show the reduced or
> extended form on the fly.
>
> At the moment I reload the whole form using a Scriptaculous updater (that
> works fine), but I have difficulties to save the updated model values.
> Obviously, the form's contents will be reset if I don’t save them.
>
> Does anyone have an idea how to save the form manually, without pressing
> the 'submit' button and without reloading the whole page?
>
> Cheers,
> Stevie
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110518/81021e27/attachment.htm


More information about the seaside mailing list