[Seaside] Help with JQuery example
rh at 4096.sk
Thu Aug 23 20:58:22 UTC 2012
I don't know why your example doesn't trigger. If you're trying to submit
the form when clicking on the button, this should work (provided you create
the input fields properly with callbacks, e.g. with #on:of)
html submitButton onClick: (html jQuery ajax serializeForm; script: [:s| my
callback here]); with: 'Click me'
On Thu, Aug 23, 2012 at 10:39 PM, squeakman <squeakman at gmail.com> wrote:
> Hello List,
> I am trying to learn how to use jQuery. I have the following simple
> example but the callback is never triggered when I hit the submit button.
> I have included the JQuery library in my configuration.
> Can you tell me what is wrong?
> renderContentOn: html
> html form with:
> [html label with: 'Name'.
> (html textInput)
> id: #temp;
> value: 'sample text'.
> html submitButton onClick: (html jQuery ajax
> callback: [:v | self halt]
> value: (html jQuery: #temp) value)]
> With Thanks,
> seaside mailing list
> seaside at lists.**squeakfoundation.org <seaside at lists.squeakfoundation.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside