OT: JavaScript Validation

2004-10-15 Thread Jillian Koskie
Hey guys, I have a form, that needs some JS help. I need a script that does two things: 1.) makes sure that at least one of 'keyword1' OR 'keyword_phrase' are not blank 2.) It somebody chooses a time period from the drop-down, that the radio button for 'timeperiod' is selected automatically. C

Re: OT: Javascript validation

2004-05-27 Thread Thomas Chiverton
On Thursday 27 May 2004 16:36 pm, Robert Orlini wrote: > The line: if(charVal < "0" || charVal > "9" && charVal != "." && charVal != > ",") still prevents a comma and period. You know JS supports regular expressions, right ? This is an excellent place to use one, something like \d[,.]\d -- Tom C

Re: OT: Javascript validation

2004-05-27 Thread Alexander Sherwood
At 11:36 AM 5/27/2004, you wrote: Check out www.yaromat.com This dude's got some cool form validation extensions for DW that use _javascript_. >I have a function to make sure a user enters a number. How can I include a number and a comma and period if a user wants to enter a price such as: 9.90?

OT: Javascript validation

2004-05-27 Thread Robert Orlini
I have a function to make sure a user enters a number. How can I include a number and a comma and period if a user wants to enter a price such as: 9.90? The line: if(charVal < "0" || charVal > "9" && charVal != "." && charVal != ",") still prevents a comma and period. function isNumber2(inputStr