Side navigation
#3516 closed bug (fixed)
Opened October 23, 2008 08:46PM UTC
Closed October 24, 2008 01:51PM UTC
Last modified March 14, 2012 11:18PM UTC
[validate] problems with remote rules
Reported by: | corretge | Owned by: | joern |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | plugin | Version: | 1.2.6 |
Keywords: | Validator | Cc: | |
Blocked by: | Blocking: |
Description
At first time congratulations for your great job.
I use jQuery Validator plugin from bassistance.de and I have a problem with remote rules.
I need to show all errors in a tabbed form in a MsgBox when the user press the submit button.
Surfing the web I try some like this:
$('#bpwcForm').bind('invalid-form.validate', function(e, validator) { var errors = validator.numberOfInvalids(); alert('ERR ' + errors); // more code to show message and field and tab positioning. });
If the value of the field have an error and I never focus the field, the submit is cancel·led but the invalid-form.validate function is not called.
Today I have another issue with a hidden field that contain all the form values to validate with a remote rule: the first time that I submit the form with an error, the MsgBox appear twice times, but the second time, don't appear the MsgBox.
Excuse me for my bad english.
Thanks for all.
Kind Regards
Àlex Corretgé
Attachments (1)
Change History (3)
Changed October 23, 2008 09:11PM UTC by comment:1
description: | At first time congratulations for your great job. \ \ I use jQuery Validator plugin from bassistance.de and I have a problem with remote rules. \ \ I need to show all errors in a tabbed form in a MsgBox when the user press the submit button. \ \ Surfing the web I try some like this: \ \ $('#bpwcForm').bind('invalid-form.validate', function(e, validator) \ { \ var errors = validator.numberOfInvalids(); \ alert('ERR ' + errors); \ // more code to show message and field and tab positioning. \ }); \ \ If the value of the field have an error and I never focus the field, the submit is cancel·led but the invalid-form.validate function is not called. \ \ Today I have another issue with a hidden field that contain all the form values to validate with a remote rule: the first time that I submit the form with an error, the MsgBox appear twice times, but the second time, don't appear the MsgBox. \ \ Excuse me for my bad english. \ \ Thanks for all. \ \ Kind Regards \ Àlex Corretgé \ → At first time congratulations for your great job. \ \ I use jQuery Validator plugin from bassistance.de and I have a problem with remote rules. \ \ I need to show all errors in a tabbed form in a MsgBox when the user press the submit button. \ \ Surfing the web I try some like this: \ {{{ \ $('#bpwcForm').bind('invalid-form.validate', function(e, validator) \ { \ var errors = validator.numberOfInvalids(); \ alert('ERR ' + errors); \ // more code to show message and field and tab positioning. \ }); \ }}} \ If the value of the field have an error and I never focus the field, the submit is cancel·led but the invalid-form.validate function is not called. \ \ Today I have another issue with a hidden field that contain all the form values to validate with a remote rule: the first time that I submit the form with an error, the MsgBox appear twice times, but the second time, don't appear the MsgBox. \ \ Excuse me for my bad english. \ \ Thanks for all. \ \ Kind Regards \ Àlex Corretgé \ |
---|
Changed October 23, 2008 09:11PM UTC by comment:2
owner: | → joern |
---|
Changed October 24, 2008 01:51PM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed in [5911].