Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Location
    Ireland
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question ASCII codes for numbers and space bar.

    Would anybody mind telling me the codes in ascii for the numbers and the space bar please?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    338
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Numbers: 48-57
    Space bar: 32

    Hope that helps!

    Happy coding!

  • #3
    Regular Coder
    Join Date
    Apr 2003
    Location
    Atlanta, GA
    Posts
    487
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The keypad numbers are 96-105, by the way. If you want to use them, this snippet is handy:

    Code:
    var code = {event}.keyCode;
    if (code <= 105 && code >= 96)  {
        code -= 48;
    }

    edit to add keyCode reference sheet I made a while ago. Yeah, it's an export from Excel, but only because I wanted it to print nicely too. Which it does.
    Last edited by Choopernickel; 12-18-2003 at 05:26 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •