[Seaside] client side validation with jQuery

Steven Noble steven.noble at gmail.com
Wed Apr 1 01:04:49 UTC 2009

I'm struggling to figure out where to do this.  I think I'm mostly
having trouble because JQAjax doesn't descend from JSObject and
doesn't have a #confirm of its own.

Instead of done something like

    jsobj := (JSStream on: 'function(){return true;}()') then: (html
jQuery ajax ...

Is this there any harm in doing it this way?

Thanks again,

On Mon, Mar 30, 2009 at 10:54 PM, Lukas Renggli <renggli at gmail.com> wrote:
>> which gives me something like
>>         ... onchange="$.getJSON ..."
>> in the rendered html and I need to have a javascript if statement
>> wrapped around the quoted text but I'm not sure how to get it there.
>> Any thoughts?
> Send the message #condition: to your query. This wraps the query into
> a conditional statement with the argument as the condition. See the
> sender JSObject>>#confirm: for an example.
> Lukas
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the seaside mailing list