Side navigation
#3006 closed enhancement (invalid)
Opened June 08, 2008 01:46PM UTC
Closed February 05, 2010 08:34PM UTC
[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 ! :)
Attachments (0)
Change History (5)
Changed August 07, 2008 01:30PM UTC by comment:1
resolution: | → worksforme |
---|---|
status: | new → closed |
Changed October 27, 2008 01:08PM UTC by comment:2
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
Changed October 27, 2008 01:13PM UTC by comment:3
** sorry clearTimeout ~clearInterval
Changed October 13, 2009 12:18AM UTC by comment:4
owner: | → joern |
---|---|
status: | reopened → new |
Changed February 05, 2010 08:34PM UTC by comment:5
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.