Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update text box from another entry immediately, before onBlur 3

Status
Not open for further replies.

roblasch

Programmer
Dec 30, 2000
168
US
I have a text box on a form that displays the total for all the other entries. I want it to update as soon as something is typed into any of the other text boxes. onChange seems to require that the text box loses focus before it is proccessed. Is there a way?
 
I'm not sure how you plan to know that the user is FINISHED typing in one of the text boxes unless they move the focus to another control. What if I typed in 12.35 and then hit backspace and changed the 5 to a 4?
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
I did the same thing. I used onKeyUp. Each time the user typed a number into a cell, the "totals" cell would display the result. So if I have two cells "10" and "5" the "totals" cell reads "15." If I click into the "5" cell and change it to "25" it calculates after I type the first number (2) and for an instant the "totals" cell reads "17" (15+2) then when I type "5" it reads "40" (15+25) This all happens very fast and works really well.

Give it a shot and let me know what you think. Kevin
slanek@ssd.fsi.com
 
Thank you Kevin, that is perfect. Exactly what I was looking for. I owe you one
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top