Skip to main content
May 28, 2009
Question

Currency Formating for a Input Textfield (ASP)

I am using Dreamweaver CS3 and VBScript coding.  I have a regular text field where the user will be entering in a dollar amount and ultimately I want a user to enter in 5000 and when they hit tab to the next field I want that number to appear as 5,000.00.  Searched the forums for a while and there where different variations but none answered this questions.

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

May 29, 2009

I think a JavaScript solution is needed here. When the form field loses focus, change the entered value into another format. I don't know the solution myself, but it should be fairly easy. A quick Google came up with this: http://javascript.internet.com/forms/currency-format.html

Good luck!

Dooza

Translate
May 29, 2009

Thanks bud, I just found this code and it works great!

http://www.yaldex.com/FSForms/CurrencyFormat.htm

Translate
May 29, 2009

Excellent, glad I could help.

Dooza

Translate
Mark_A__Boyd
Inspiring
May 28, 2009

I don't use that language, but it looks as if FormatNumber() is what you're looking for.
http://www.w3schools.com/vbScript/func_formatnumber.asp

--
Mark A. Boyd
Keep-On-Learnin' :-)
If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply.

Translate
David_Powers
Inspiring
May 28, 2009

Thread moved to Dreamweaver Application Development forum.

Translate
May 28, 2009

Sorry about the Subject heading, thanks for moving it to the right forum!

Translate