Click to See Complete Forum and Search --> : Formatting Numbers


Leonard
05-16-2003, 09:09 AM
Hi Folks,
I have a big problem. I need to print numbers in an HTML page according to the format configured in window's Regional Settings.
Does anybody knows how to do it ? I believe that JavaScript is able to do that.

thank you

Leonard

khalidali63
05-16-2003, 09:28 AM
I doubt that( Then I could be wrong).
Here take a look at this link,you probably wnat to read on the topics Math and Number,My understanding of JavaScript is that it can not work or manipulate OS specific settings..

http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/

Leonard
05-16-2003, 11:08 AM
Thank you, I think that is not possible too. I just wanted someone to confirm that.
Maybe I should look for something related to ActiveX or Windows Object, if someone has sugestions, I will kindly appreciate.

regards
Leonard

khalidali63
05-16-2003, 11:40 AM
if you know before hand what are the regional settings you can probably do this....???

Leonard
05-20-2003, 09:19 AM
I got it!
Pretty easy. All I had to do is to acess the locale of requesting browser: request.getLocale();
This locale information reflects what I got in the windows's regional options. If you change this configurations, the result of the above method changes as well.

regards
Leonard