JavaScript
  Home arrow JavaScript arrow More Mouse and Keyboard Events with the jQ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

More Mouse and Keyboard Events with the jQuery JavaScript Library
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-09-02

    Table of Contents:
  • More Mouse and Keyboard Events with the jQuery JavaScript Library
  • Review: mouse overs and keydown events with jQuery
  • Manipulating a keypress event with the keypress() method
  • Using the keyup() method

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    More Mouse and Keyboard Events with the jQuery JavaScript Library


    (Page 1 of 4 )

    Welcome to the fourth article in an eight-part series on the jQuery JavaScript library. In this part, I will walk you through using a pair of brand new methods provided by the library for processing some additional keyboard-related actions, such as keydown and keyup events.

    Introduction

    Over the last few months, a brand new player entered the arena of JavaScript frameworks. Thanks to its friendly programming interface and useful features, it has been rapidly adopted by many professional web designers worldwide. I'm talking about the jQuery framework, a neatly-crafted piece of software that allows you to build full-featured JavaScript applications with minor effort, by utilizing a set of truly intuitive methods.

    Of course, if you already read the preceding installment of this series, then I should assume that at this stage, you're very familiar with using the API provided by the jQuery library, in order to perform certain common tasks. These include handling some typical mouse events and a few keyboard actions.

    During the aforementioned article, I explained how to use the "mouseover()" and "keydown()" methods bundled with the library to develop a couple of sample web applications that were capable of reacting to these specific events.

    In those particular cases, the methods were attached to a link within a basic web page, so when this element was clicked, it fired up a function that displayed on screen a trivial alert box. Naturally, the inherent simplicity of these examples is very evident, but they still demonstrated how to use these methods in concrete situations.

    However, as you may have guessed, the jQuery library comes with some additional methods for handling several keyboard events with relative ease. I'm going to explain how to utilize these methods for processing both "keyup" and "keypress" events.

    Are you ready to learn how to perform all of these useful tasks with jQuery? Let's begin now!

    More JavaScript Articles
    More By Alejandro Gervasio


       · This chapter of the series explains how to utilize the jQuery library for processing...
       · I love the print version -- really the only readable version.I seriously doubt...
       · Thanks for the comments, as I really appreciate your words and the time you took to...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek