[Seaside] Help with JQuery example

radoslav hodnicak 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'

rado

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,
> Frank
>
> ______________________________**_________________
> seaside mailing list
> seaside at lists.**squeakfoundation.org <seaside at lists.squeakfoundation.org>
> http://lists.squeakfoundation.**org/cgi-bin/mailman/listinfo/**seaside<http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120823/dea46251/attachment.htm


More information about the seaside mailing list