New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using undefined validator #429
Comments
What version of the plugin are you using? Can you confirm that the module files are loaded in the console. They must be located in |
You could try thisto check that the plugin can load the module files <script type="text/jscript" src="js/jquery.js"></script>
<script type="text/jscript" src="js/plugins/form-validator/jquery.form-validator.min.js"></script>
<script>
$.formUtils.loadModules('location, date', null, function() {
alert('modules loaded...');
});
</script> |
Could you also try this and check what you can see in the console $.formUtils.loadModules('location, date, security, file', null, function () {
console.log('modules loaded...');
console.log($.formUtils.validators);
}); |
My result :
|
Sorry I need to see them all.. $.formUtils.loadModules('location, date, security, file', null, function () {
console.log('modules loaded...');
console.log( Object.keys($.formUtils.validators) );
}); |
Show all modules are loaded :
|
Hm.. could you try this: var setupValidation = function() {
$.validate({
lang: 'fr'
});
$('#country').suggestCountry();
// Restrict presentation length
$('#presentation').restrictLength($('#pres-max-length'));
};
$.formUtils.loadModules('location, date, security, file', null, setupValidation); |
Yes, it works fine ! Thanks you ! |
Hey, I try this way but i can't load modules i'm getting errors, I try yor code "See them all":
When I try your next code I get this
Any idea? I change "null" for the route where is form-validator Thanks. |
Hello, thanks for this great plugins but I 've problem, my browser say :
Using undefined validator for all my modules.
My code : http://pastebin.com/3BZ6bmb2
When I use this plugin with classic HTML work fine but when I use it on ASPX page I've these errors.
All files for modules are correctly loaded by browser.
The text was updated successfully, but these errors were encountered: