This is a discussion on Want to know the difference within the PHP forums, part of the Programming Talk category; What is the difference between onkeyup and onchange events in PHP? If someone could give a brief explanation I could ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
ONKEYUP event is used for the below scenario:
As a user types into a textfield, another field generates a new number to reflect each additional letter. For example, "c" yields 1, "ca" yields 3 and "cat" regenerates the number field to, say, 9. The user sees this update as he types in his string. |
|
|||
|
ONKEYUP event is used for the below scenario:
Pasting doesn't trigger the ONKEYUP event. Were we to use ONCHANGE, we'd lose the letter-by-letter update-and-show-number feature. That's because ONCHANGE only gets the input once the entire string is entered. |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between pentium 3 and pentium... | JobHelper | Tech FAQ | 1 | 09-25-2008 04:19 PM |
| difference between winrunner 7./7.6 | zecar | Software Testing | 1 | 11-13-2006 03:32 AM |
| Linux vs. Windows web Hosting, does it make a difference? | sanereddy | Unix Articles and Tutorials | 7 | 04-23-2006 02:39 PM |
| comp.lang.c Answers to Frequently Asked Questions (FAQ List) | Steve Summit | Tech FAQ | 0 | 06-01-2004 07:00 AM |
| Smalltalk FAQ (v.1.0) | Vikas Malik | Tech FAQ | 0 | 04-17-2004 08:27 AM |