You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stefan Esterer <de...@gmail.com> on 2007/01/12 11:42:44 UTC
Client Side Validation: Custom Validation Function
Hi all...
I have a question concerning the creation of a custom client side validation
Javascript function.. I used this page
http://tapestry.apache.org/tapestry4.1/javascript/form.html to inform
myself.
I'm also able to bind my custom function as a constraint, but I have two
questions:
In the tutorial a function should be binded like this
field_name1: myValidationFunction
But how can I access in this function the value of the fieldname?
I'm using my function in this way
field_name1: myValidationFunction,field
In this way i have a function myValidationFunction(field) and with the
variable field i can access the content of the field. is this the correct
way?
the other question is, how can i send a plain string object to my function?
if I have the binding like this
field_name1: myValidationFunction,"true" and the definition of the
function like this myValidationFunction(bool)
Then the content of bool is alway "1" ... Do I miss something?
thx for your help
stefan
--
View this message in context: http://www.nabble.com/Client-Side-Validation%3A-Custom-Validation-Function-tf2965263.html#a8296244
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org