question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable keyup.ParsleyFailedOnce event after first failure

See original GitHub issue

I’m using the remote validator, but I don’t want to make a request on every keypress after the initial failure. Please tell me how to do this. I’ve tried:

$form = $('form.parsley_enabled')
$form.parsley
  trigger: 'blur'
  successClass: 'valid'
  errorClass: 'invalid'
  excluded: "input[type=button], input[type=submit], input[type=reset], input[type=hidden], [disabled], :hidden"

$form.off 'keyup.ParsleyFailedOnce'

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
marcandrecommented, Jun 19, 2018

IIUC your question: Options are inherited, so you can set it on the form. Otherwise please use StackOverflow, thanks.

0reactions
MicahBrowncommented, Jun 19, 2018

@guilhermeocosta Look at the data-parsley-debounce option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I prevent keyup event after a keydown in javascript?
Can I control an event during keydown to prevent the next keyup event of the same key? $(document).keydown(function (e) { if(some_condition) e.
Read more >
Element: keydown event - Web APIs | MDN
The keydown and keyup events provide a code indicating which key is pressed, while keypress indicates which character was entered. For example, ...
Read more >
.keyup() | jQuery API Documentation
The keyup event is sent to an element when the user releases a key on the keyboard. It can be attached to any...
Read more >
Control.KeyPress Event (System.Windows.Forms)
Shift) { nonNumberEntered = true; } } // This event occurs after the KeyDown event and can be used to prevent // characters...
Read more >
Detect single and multiple keypress events: JavaScript
The first thing I would like to say on the subject is not to use the 'keypress' event. This feature has been deprecated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found