Re: [Validation] Would like to use jqueryvalidation

Esteban Maringolo <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <CAJMgPCLZgUUbWShZCgXaAnPwgGUht524MZMMvNUObUrs8K-8ZQ@mail.gmail.com>
Oh, sorry I assumed validate was already defined, you can then do:

html script: ((html jQuery id: 'commentForm') call: 'validate').

Or implement validate in JQueryInstance as follows:

JQueryInstance>>#validate
     ^self call: 'validate'

If you plan to use validate extensively I recommend you do the latter.

Regards,


Esteban A. Maringolo



El mar., 5 feb. 2019 a las 17:44, sergio ruiz (<[email protected]>) escribió:
>
>
> html script: (html jQuery id: 'commentForm') validate.
>
>
> okay, on this, smalltalk doesn’t know what validate is..
>
> this validate method is coming from an external javascript library.. so smalltalk wouldn’t know about it..
>
>
> ----
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.codeandmusic.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.