[Seaside] Submit form with scriptaculous - callback not called
renggli at gmail.com
Tue Feb 14 16:17:25 UTC 2012
You need a button, anchors are never part of a form submission.
On 14 February 2012 16:39, squeakman <squeakman at gmail.com> wrote:
> 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
> 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;
> [(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,
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside