Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 9th, 2004, 10:19 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Number chcecking according to the pattern

Hello, I'd like to know if it is possible to check Numbers according to the pattern like in DecimalFormat class in Java. I don't want to write this check myself :-). Thanks.
 
Old March 9th, 2004, 10:49 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Not built-in, it does support regular expressions though. Can you give an example of what you need?

--

Joe
 
Old March 9th, 2004, 10:56 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a multilangual web application, there is a form and there is a box (let's say for numbers). I want to to write Javascript function, which will parse the input and tells the user if he entered number or not. From the application I will have the pattern - in format for Java class DecimalFormat.

I hope you will understand what I wrote :-).
 
Old March 9th, 2004, 11:24 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I think I follow, I don't know if you can find these anywhere, JavaScript certainly doesn't have the capabilities built in to check number formats directly..

--

Joe
 
Old March 9th, 2004, 11:29 AM
Registered User
 
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you. I thought I will have to write it myself.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Pattern TheGame Ajax 1 July 26th, 2008 03:02 PM
Dispose Pattern guntank C# 0 September 26th, 2006 10:08 PM
Javascript Pattern How To muklee Javascript How-To 3 September 15th, 2006 09:11 AM
last directory pattern pc2006 BOOK: Beginning Regular Expressions 1 September 8th, 2006 12:45 AM
DirectoryInfo.GetFiles(pattern): search pattern fo arif_1947 VS.NET 2002/2003 1 October 19th, 2004 11:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.