Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Validator 1

Status
Not open for further replies.

overDeveloper

Programmer
Dec 11, 2006
58
US
I have a custom validator that calls a function:
Code:
function val_con1 () {
if (document.all.formname.conname.value == "") {
 args.IsValid=false;
 return;
}
now this works, as in it does not submit the form and it shows the error message, but I also get a javascript error on the args.IsValid=false; soemthing to the effect of the object does not support that method... that's issue 1....

secondly, how can I get the error message to disappear on a custom validator once the control is valis (like it does on a required field val)??

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top