[Seaside] Submit form with scriptaculous - callback not called

Lukas Renggli renggli at gmail.com
Tue Feb 14 16:17:25 UTC 2012


You need a button, anchors are never part of a form submission.

Lukas

On 14 February 2012 16:39, squeakman <squeakman at gmail.com> wrote:
> Hello,
>
> The code below is trying to have the form submitted when the user clicks on
> the text "Click here".
>
> The onClick: submits the form (at least I think that is what the code is
> doing).
>
> My problem is that the callback never gets called.  What am I doing wrong?
> (There are no errors reported by firebug.)
>
>
> renderContentOn: html
>
> (html form)
>        id: #foo;
>        with:
>           [(html paragraph)
>                onClick: (html scriptaculous request triggerForm: #foo);
>                with: 'Click here'.
>
>        (html anchor)
>                " this callback is never called"
>                callback: [self answer];
>                with: 'Done']
>
>
>
> Many thanks,
> Frank
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



-- 
Lukas Renggli
www.lukas-renggli.ch


More information about the seaside mailing list