N
Nathan Sokalski
When writing a validator by inheriting from the BaseValidator class, you
need to include a JavaScript function that takes one parameter (the span tag
generated by the validator) and returns true or false. This is great for
validators that can do validation client-side, but I am writing a validator
that requires server-side interaction with a database (it validates that a
value is unique). I would like to add the ability to have this validator use
ajax/client callbacks to display the validation result without a full
postback. I have used ajax and client callbacks many times in the past, but
my problem here is getting the result returned from the server to be applied
the same way the result from the JavaScript function assigned to the
evaluationfunction attribute of the generated span tag would be. Can anybody
help me here? Thanks.
need to include a JavaScript function that takes one parameter (the span tag
generated by the validator) and returns true or false. This is great for
validators that can do validation client-side, but I am writing a validator
that requires server-side interaction with a database (it validates that a
value is unique). I would like to add the ability to have this validator use
ajax/client callbacks to display the validation result without a full
postback. I have used ajax and client callbacks many times in the past, but
my problem here is getting the result returned from the server to be applied
the same way the result from the JavaScript function assigned to the
evaluationfunction attribute of the generated span tag would be. Can anybody
help me here? Thanks.