[Seaside] [Validation] Would like to use jqueryvalidation

sergio ruiz sergio.rrd at gmail.com
Tue Feb 5 19:56:10 UTC 2019


Awesome! trying now..

how do include the the CDN in the header?

Thanks!


On February 5, 2019 at 2:48:33 PM, Esteban Maringolo (emaringolo at gmail.com)
wrote:

Hi Sergio,

Try with this:

html textInput
id: 'cname';
name: 'name';
attributeAt: 'required' put: true;
callback: [:v | ... ].

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

Regards,


Esteban A. Maringolo

El mar., 5 feb. 2019 a las 16:44, sergio ruiz (<sergio.rrd at gmail.com>)
escribió:
>
> I would like to use JQueryValidation (https://jqueryvalidation.org/) in
my application, but I am not sure now to do a few things.
>
> - how do i go about including the source? I will probably just use a CDN
link. How to i insert that into the head?
> - how do i got about inserting the directive?
>
> The html will look something like:
>
> <input id="cname" name="name" minlength="2" type="text" required>
>
>
> How do I insert that “required” directive?
>
> I also need to insert a javascript snippet:
>
> $("#commentForm").validate();
>
> How do insert that?
>
> Thanks!
>
>
> ----
> 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
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190205/183c3e7e/attachment.html>


More information about the seaside mailing list