Exforsys

Online Training

Want to know the difference

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


Go Back   Exforsys > Programming Talk > PHP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2007, 11:14 AM
Senior Member
 
Join Date: Apr 2006
Posts: 145
Rahulbatra is on a distinguished road
Want to know the difference

What is the difference between onkeyup and onchange events in PHP? If someone could give a brief explanation I could get a clear view on this concept
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-14-2007, 04:07 AM
Senior Member
 
Join Date: Apr 2006
Posts: 141
Adrian is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-14-2007, 06:36 AM
Senior Member
 
Join Date: Apr 2006
Posts: 125
ashlee is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -4. The time now is 09:58 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.