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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form that calculates totals in Coldfusion? 1

Status
Not open for further replies.

katherinep

Programmer
Sep 18, 2003
49
AU
Hello!

I want to make a web page with a form that when a user enters a value into a textbox it multiplies that number with another number and display it in another textbox. I have managed this in JavaScript, but I was wondering if it was possible to do the calculations in ColdFusion and if so does anyone know of a good example as I have had a look and not managed to find anything that doesn't look too complicated!

Thanks in advance,

Katherine


 
No, ColdFusion is a server side language, which means CF does everything before the page is loaded and presented to the user. Once the page is up, you have to do stuff like this client side (ie, javascript). The only way to do it in CF would be resubmit the form and have CF do the calculations then display then in the box when the page loads.



Hope This Helps!

ECAR
ECAR Technologies, LLC

"My work is a game, a very serious game." - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top