I want to trigger an ajax request when the user has finished typing in a text box. I don't want it to run the function on every time the user types a letter because that would result in A LOT of ajax requests, however I don't want them to h...
How do you tell if caps lock is on using JavaScript?  One caveat though: I did google it and the best solution I could find was to attach an onkeypress event to every input, then check each time if the letter pressed was uppercase, and if it was, t...
I have an idea for a game in javascript (I'm going to make it with EaselJS) and I'll have to detect keypresses. After looking around on the internet I've seen a lot of suggestions (use window.onkeypress, use jQuery, etc.) but for almost...
I am building an application where I want to be able to click a rectangle represented by a DIV, and then use the keyboard to move that DIV by listing for keyboard events.  Rather than using an event listener for those keyboard events at the documen...
Is there a way to detect if a key is currently down in JavaScript?  I know about the "keydown" event, but that's not what I need. Some time AFTER the key is pressed, I want to be able to detect if it is still pressed down.  P. S. The bi...
Related: JavaScript KeyCode vs CharCode  Here is some code you can try at home or in a jsfiddle:  el.addEventListener( 'keyup', function( e ) {      console.log( 'Keyup event' );     console.log( e.keyCode ); } );  el.addEventListen...
this is how i'm trying  <script type="text/javascript">      $(document).ready(function(){         $('#dateIn,#dateOut').click(function(e){             e.preventDefault();         });       }); </script>   but the inpu...
Mostly this is a sanity check. The key code for both shift keys is 16. Does that mean it is actually impossible to distinguish a left and right shift events in a browser?...
I'm looking for a KeyListener for a game I'm developing in JavaScript. I have no idea how this would work in real code but it would be something like this:   if(keyPress == upKey) {     playerSpriteX += 10; } else if(keyPress == downKey) {...
I have made a page using jquery, and on load it selects the first text field automatically. I want it to then move to the next field when the ENTER key is pressed.  $('.barcodeField input').bind('keyup', function(event) {     if(event...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.