What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Dynamically changing text box, based on a form input?

Dynamically changing text box, based on a form input?
Author: Message:
stoshrocket
Senior Member
****

Avatar
formerly methos

Posts: 748
Reputation: 31
34 / Male / Flag
Joined: Aug 2005
RE: Dynamically changing text box, based on a form input?
quote:
Originally posted by Jimbo
Thanks, but wont that $_POST variable only be retrieved after the form is submitted? or am I being stupid?

I'm trying to make it change instantly, as a new value is entered into the amount box, or if that isn't possible, a button or something to update the total.

And also, I am not trying to round the amount entered, but the amount produced. For example, say someone donated $6.23 (unlikely, yes, but it could happen),  that / 0.05 is 124.6. What I would want produced is 125, the nearest whole number. Sorry if I didn't make myself clear.
Sorry, didn't realised you wanted it to calculate on the fly (should've guessed from the title...). As a note, the ceil(..) will produce a rounded value after the calculation.

As for the javascript, shouldn't "result" be either an input as your are trying to change it's "value", or change value to "innerText" so the text is placed within the div?
formerly methos
02-08-2010 12:36 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Dynamically changing text box, based on a form input? - by Jimbo on 02-07-2010 at 09:37 PM
RE: Dynamically changing text box, based on a form input? - by Chrissy on 02-07-2010 at 10:07 PM
RE: Dynamically changing text box, based on a form input? - by stoshrocket on 02-07-2010 at 10:14 PM
RE: Dynamically changing text box, based on a form input? - by Jimbo on 02-07-2010 at 11:03 PM
RE: Dynamically changing text box, based on a form input? - by Spunky on 02-07-2010 at 11:44 PM
RE: Dynamically changing text box, based on a form input? - by Jimbo on 02-08-2010 at 12:15 AM
RE: Dynamically changing text box, based on a form input? - by Spunky on 02-08-2010 at 12:22 AM
RE: Dynamically changing text box, based on a form input? - by stoshrocket on 02-08-2010 at 12:36 AM
RE: Dynamically changing text box, based on a form input? - by Jimbo on 02-08-2010 at 12:37 AM
RE: Dynamically changing text box, based on a form input? - by Spunky on 02-08-2010 at 12:40 AM
RE: Dynamically changing text box, based on a form input? - by Jimbo on 02-08-2010 at 01:08 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On