Click to See Complete Forum and Search --> : CustomValidator ClientValidationFunction


bslezak
October 2nd, 2003, 08:33 PM
Can anyone help me figure out why client validation refuses to work for me? I am following examples word for word and have server-side validation running fine, but my customvalidator refuses to fire client validation. I'm using a very simple java function:

function ClientValidate( source, args )
{
alert("Enter Client Validation!");
}

In the ClientValidationFunction property of the CustomValidator I have:
ClientValidate

But it never happens. Server-side validation works correctly, and javascript code is running properly in the page. I can call the javascript function elsewhere and it works. ??? No idea what I'm missing here. Has anyone else worked with this successfully?

Greatly appreciative,
Brian

Harshit
October 6th, 2003, 10:35 AM
Hi,

well the code which u posted works fine here.. i guess the problem is not with the jscript of customvalidator setting.. it might be in ur browser setting. Try changing the security level of ur browser to minimum so that it can execute client scripts. also make sure that u r using a browser which supports java scripts.

enjoy.

-Harshit

bslezak
October 7th, 2003, 03:56 PM
Don't think that is the issue as I can run client script at page start up. It just doesn't run on validation. Must be some weirdness I guess?

Brian