N
Nathan Sokalski
I am trying to learn a little more about how to add client-side validation
to custom validators that I write (by inheriting from the BaseValidator
class). I know that the name of the JavaScript function is assigned to an
attribute named 'evaluationfunction' and that the function returns true or
false. However, some of the things I don't know or are unclear about are:
1. What parameters does the function assigned to evaluationfunction receive?
If they are objects, what properties do they have?
2. On several of the websites I was looking at for help, they said the
function assigned to evaluationfunction had 2 parameters, but were unclear
on what they were.
3. One of the validators (or actually types of validators) I am working on
writing is validators that use client callbacks (also known as AJAX). I know
how to implement the ICallbackEventHandler, but since the callback must be
initiated by JavaScript, I am assuming the callback statement would be in
the function used for evaluationfunction. However, this would require
calling a function to apply the validation after returning from the
callback. From what I could get from the sites I could find, this would
involve calling the ValidatorUpdateDisplay function that exists in the
WebUIValidation.js file after returning. However, I was having a little
trouble figuring out what to pass it and where to get that value.
If anybody could help me here, it would be greatly appreciated. Thanks.
to custom validators that I write (by inheriting from the BaseValidator
class). I know that the name of the JavaScript function is assigned to an
attribute named 'evaluationfunction' and that the function returns true or
false. However, some of the things I don't know or are unclear about are:
1. What parameters does the function assigned to evaluationfunction receive?
If they are objects, what properties do they have?
2. On several of the websites I was looking at for help, they said the
function assigned to evaluationfunction had 2 parameters, but were unclear
on what they were.
3. One of the validators (or actually types of validators) I am working on
writing is validators that use client callbacks (also known as AJAX). I know
how to implement the ICallbackEventHandler, but since the callback must be
initiated by JavaScript, I am assuming the callback statement would be in
the function used for evaluationfunction. However, this would require
calling a function to apply the validation after returning from the
callback. From what I could get from the sites I could find, this would
involve calling the ValidatorUpdateDisplay function that exists in the
WebUIValidation.js file after returning. However, I was having a little
trouble figuring out what to pass it and where to get that value.
If anybody could help me here, it would be greatly appreciated. Thanks.