Click here to Skip to main content
15,946,320 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestiontoLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
fig00006-Jul-24 12:10
fig00006-Jul-24 12:10 
AnswerRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
Richard Deeming7-Jul-24 21:17
mveRichard Deeming7-Jul-24 21:17 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
fig00008-Jul-24 4:25
fig00008-Jul-24 4:25 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
Richard Deeming8-Jul-24 6:43
mveRichard Deeming8-Jul-24 6:43 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
fig00009-Jul-24 4:42
fig00009-Jul-24 4:42 
Mr. Deeming,

I saw your experiments using very large numbers and the weird behavior with negative numbers and, as you said, eventual replacement of numbers with zeros. I will read the JS documentation you gave me. I will ask however it you found that this JS documentation helped you solve the problem or if a mystery to you and you have no fix for it. I ask because I am considering not using tolocalstring and all that and simply using brute force parsing of the number as it is typed (e.g. dividing the number of digits by three and using that to place the commas in through parsing code and not to local string). I hesitate to do this but it may be my only answer. Just let me know if, as it seems from your post, that you have been unable to solve the problem of weird behavior adding a high number of digits.
You also describe a demo you set up to test this; is it possible for you to post it. Due to the high number of digits you were able to use, that may be enough for me to handle this cases I have in my code (I believe it don't need to use more than 12 digits which is far smaller than the example you showed us that worked. Thanks again for all your help.

Neil
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
Richard Deeming9-Jul-24 5:44
mveRichard Deeming9-Jul-24 5:44 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
Jeremy Falcon17-Jul-24 16:13
professionalJeremy Falcon17-Jul-24 16:13 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
jsc428-Jul-24 22:49
professionaljsc428-Jul-24 22:49 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
fig00009-Jul-24 4:32
fig00009-Jul-24 4:32 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
jschell18-Jul-24 14:32
jschell18-Jul-24 14:32 
GeneralRe: toLocaleString() works to insert commas in a asp.net textbox until I enter the eighth digit. The eight digit breaks the insertion of commas Pin
fig000018-Jul-24 20:02
fig000018-Jul-24 20:02 
QuestionCan we use the NuGet package of .Net in WebDriverIO (JavaScript) framework? Pin
Anand Sabley20-Jun-24 20:44
Anand Sabley20-Jun-24 20:44 
QuestionProgressbar has a value of 100% before upload progress is finished Pin
Red Kipling4-Jun-24 9:34
Red Kipling4-Jun-24 9:34 
AnswerRe: Progressbar has a value of 100% before upload progress is finished Pin
Richard Andrew x648-Jun-24 11:33
professionalRichard Andrew x648-Jun-24 11:33 
GeneralRe: Progressbar has a value of 100% before upload progress is finished Pin
Richard Deeming9-Jun-24 21:39
mveRichard Deeming9-Jun-24 21:39 
AnswerRe: Progressbar has a value of 100% before upload progress is finished Pin
jschell12-Jun-24 15:04
jschell12-Jun-24 15:04 
AnswerRe: Progressbar has a value of 100% before upload progress is finished Pin
Steve Raw17-Jun-24 10:34
professionalSteve Raw17-Jun-24 10:34 
QuestionProgressbar get only the size of first input Pin
Red Kipling2-Jun-24 0:43
Red Kipling2-Jun-24 0:43 
QuestionJqxTree control is taking time to load with 500 records Pin
yadta6-Feb-24 18:57
yadta6-Feb-24 18:57 
AnswerRe: JqxTree control is taking time to load with 500 records Pin
Richard Deeming6-Feb-24 21:33
mveRichard Deeming6-Feb-24 21:33 
GeneralRe: JqxTree control is taking time to load with 500 records Pin
jschell7-Feb-24 5:40
jschell7-Feb-24 5:40 
AnswerRe: JqxTree control is taking time to load with 500 records Pin
Prestige Somerville live27-Mar-24 20:10
Prestige Somerville live27-Mar-24 20:10 
Questionpassing 0 to a function Pin
mike741112-Jan-24 1:53
mike741112-Jan-24 1:53 
AnswerRe: passing 0 to a function Pin
Richard Deeming12-Jan-24 2:14
mveRichard Deeming12-Jan-24 2:14 
AnswerRe: passing 0 to a function Pin
Richard MacCutchan12-Jan-24 3:08
mveRichard MacCutchan12-Jan-24 3:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.