Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: JS error with MaskedEditValidator's ClientValidationFunction property [26740]

$
0
0
I am getting the following error if I set the ClientValidationFunction property for the MaskedEditValidator.

Microsoft JScript runtime error: 'value' is undefined

The work around is to turn off the minified script by using the following
<ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1" CombineScripts="false" />
Comments: I have been using an workaround for this. Since the code was minified we need to make a closure to make those variables go ahead. So instead of using: ``` ClientValidationFunction="ValidateCPF" ``` We are using: ``` ClientValidationFunction="(function(){ValidateCPF(a, k);})" ``` Where "a" and "k" are the name of each variable that was minified.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>