Click here to Skip to main content
15,891,513 members
Home / Discussions / Web Development
   

Web Development

 
QuestionPublishing a Website with VS2005 Pin
scotlandc13-May-09 23:00
scotlandc13-May-09 23:00 
AnswerRe: Publishing a Website with VS2005 Pin
Jeff Circeo14-May-09 5:02
Jeff Circeo14-May-09 5:02 
QuestionPrint iframes content pdf file using javascript in safari browser Pin
bganesan13-May-09 17:48
bganesan13-May-09 17:48 
QuestionASP.NET and Localized Content Pin
ahayw0113-May-09 16:59
ahayw0113-May-09 16:59 
AnswerRe: ASP.NET and Localized Content Pin
Samer Aburabie13-May-09 20:42
Samer Aburabie13-May-09 20:42 
Questiongetting userid on the time of loging in. help Pin
orsini4413-May-09 5:47
orsini4413-May-09 5:47 
AnswerRe: getting userid on the time of loging in. help Pin
Samer Aburabie13-May-09 20:48
Samer Aburabie13-May-09 20:48 
QuestionHelp needed with javascript function for validating textbox data Pin
Brendan Vogt12-May-09 20:32
Brendan Vogt12-May-09 20:32 
Hi,

I am either looking for a Javascript function, or a regular expression that I can use in Javascript.   I have been struggling to get mine to work, so I am asking if someone can please help me write a function.

What it must do is to allow only 3 decimal places.   While I type the textbox must be validated.   Something like 123.456 is valid.   It should not allow anything after .456 It must accept a number or a float.

It must also allow a - and a +.

This is what I currently have (but it accepts lots of decimals):

var regex = /^(\d|-)*\.?\d*$/;

Please can someone help?

Thanks
Brendan
AnswerRe: Help needed with javascript function for validating textbox data Pin
RyanMorris13-May-09 0:14
RyanMorris13-May-09 0:14 
GeneralRe: Help needed with javascript function for validating textbox data Pin
Brendan Vogt13-May-09 0:38
Brendan Vogt13-May-09 0:38 
GeneralRe: Help needed with javascript function for validating textbox data Pin
RyanMorris13-May-09 0:59
RyanMorris13-May-09 0:59 
QuestionIIS Settings Pin
p_196012-May-09 18:40
p_196012-May-09 18:40 
AnswerRe: IIS Settings Pin
Yusuf14-May-09 8:20
Yusuf14-May-09 8:20 
QuestiononClick JavaScript handler in a frame works in IE7/8 but not in Safari Beta 4 Pin
BillWoodruff12-May-09 5:16
professionalBillWoodruff12-May-09 5:16 
Questiondocument.execCommand("InsertHorizontalRule") will not insert the InsertHorizontal Rule in IE while you don't have selected text Pin
Member 364582312-May-09 4:45
Member 364582312-May-09 4:45 
Questiontoggle and drop down menu(show/hide) Pin
crain198112-May-09 3:07
crain198112-May-09 3:07 
AnswerRe: toggle and drop down menu(show/hide) Pin
crain198112-May-09 4:35
crain198112-May-09 4:35 
AnswerRe: toggle and drop down menu(show/hide) Pin
WoutL12-May-09 20:31
WoutL12-May-09 20:31 
GeneralRe: toggle and drop down menu(show/hide) Pin
crain198113-May-09 10:36
crain198113-May-09 10:36 
Questionline graphs creation in html page [modified] Pin
NarVish11-May-09 22:48
NarVish11-May-09 22:48 
AnswerRe: line graphs creation in html page Pin
Ashfield12-May-09 1:24
Ashfield12-May-09 1:24 
GeneralRe: line graphs creation in html page Pin
NarVish12-May-09 18:47
NarVish12-May-09 18:47 
GeneralRe: line graphs creation in html page Pin
Ashfield12-May-09 21:32
Ashfield12-May-09 21:32 
QuestionNeed help in code-behind Pin
Senthil S11-May-09 21:25
Senthil S11-May-09 21:25 
AnswerRe: Need help in code-behind Pin
saanj12-May-09 20:50
saanj12-May-09 20:50 

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.