Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Currency Formating for a Input Textfield (ASP)

Guest
May 28, 2009 May 28, 2009

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

TOPICS
Server side applications
876
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 28, 2009 May 28, 2009

Thread moved to Dreamweaver Application Development forum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 28, 2009 May 28, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
May 28, 2009 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 29, 2009 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 29, 2009 May 29, 2009

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

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 29, 2009 May 29, 2009
LATEST

Excellent, glad I could help.

Dooza

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines