Re: [Validation] Would like to use jqueryvalidation
sergio ruiz <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CABOFMNm5AfkQkGhWjUeVV8k5o9o3tx0=v5UQXw_rgNVqX+FhGg@mail.gmail.com> |
Perfect! i ended up cheating and doing:
html
script:
'$("#dataForm").validate();$("#enterZipCOde").rules( "add", {minlength: 5,
digits: true});’
but i’ll clean that up..
Thanks!
On February 5, 2019 at 3:58:56 PM, Esteban Maringolo ([email protected])
wrote:
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
----
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