CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Resolved Is there something faster than onchange? (http://www.codingforums.com/showthread.php?t=272507)

jkurrle 09-07-2012 08:18 PM

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...

WolfShade 09-07-2012 08:30 PM

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.

jkurrle 09-07-2012 08:49 PM

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...


All times are GMT +1. The time now is 06:52 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.