![]() |
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...
|
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.
|
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.