Opened 15 years ago
Closed 13 years ago
#3006 closed enhancement (invalid)
[validate] Validation plugin is slow when onkeyup activated
Reported by: | lideln | Owned by: | joern |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | plugin | Version: | 1.2.6 |
Keywords: | validate | Cc: | |
Blocked by: | Blocking: |
Description
Validate-plugin is slow when onkeyup is activated. I have some fields, and one of them is using a custom validation function, which just performs a regex test (two regex actually). Plugin "slows down computer", I mean there is a delay between typing a key and having the letter appear.
I suggest using sort of a timer to detect "end of typing" and then performing validation (and not on keyup, which is in fact not interesting).
Thanks for this plugin, have a nice day ! :)
Change History (5)
comment:1 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
I am experiencing the same issue It seems a shame to loose the keyup functionality, can the validation be called after a pause on keyup so...
var keyupPauseId; onkeyup = function(){ if(keyupPauseId){ clearInterval(keyupPauseId);} keyupPauseId = setTimeout(doValidation, 2500); }
this is obviously psuedo-code, just to give an idea of what I mean
comment:4 Changed 13 years ago by
Owner: | set to joern |
---|---|
Status: | reopened → new |
comment:5 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Please file plugin bugs with the appropriate author on their bug tracker.
You can always disable keyup-validation via onkeyup:false.
If that isn't enough, please provide an example of your custom method, and reopen this ticket.