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 Coder
    Join Date
    Jan 2012
    Posts
    47
    Thanks
    21
    Thanked 1 Time in 1 Post

    Is there something faster than onchange?

    I am building a form that, based on whether a text box is filled in or not, either enables or disables certain form fields. What I'm seeing is that there is a noticeable delay as you leave the text field to see the following fields either enable or disable. Is there a more responsive javascript technique than using onchange? Also, what kind of overhead does it entail? I'd be using the technique across a form with hundreds of inputs...
    Last edited by jkurrle; 09-07-2012 at 09:58 PM. Reason: Issue is Resolved

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    It's not the speed of the event; it's most likely the speed of the client computer. Check to see that your CPU isn't pegged while testing the code.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • Users who have thanked WolfShade for this post:

    jkurrle (09-07-2012)

  • #3
    New Coder
    Join Date
    Jan 2012
    Posts
    47
    Thanks
    21
    Thanked 1 Time in 1 Post

    Got it, thanks

    Ok, that makes sense, I guess. My local WAMP development environment is pretty pokey. But I figured that since Javascript is a client based language, the issue was due to browser execution of the code. My server based PHP code seems to run a lot faster than the client based Javascript stuff...


  •  

    Posting Permissions

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