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?
>
>The line: if(charVal < "0" || charVal > "9" && charVal != "." && charVal != ",") still prevents a comma and period.
>
>function isNumber2(inputStr, field)
>{
>for(var i=0; i<inputStr.length; i++)
>{
>var charVal = inputStr.substring(i, i+1);
>if(charVal < "0" || charVal > "9" && charVal != "." && charVal != ",")
>{
>alert("Please make sure your " + field + " entry are numbers ., only");
>return false;
>}
>}
>return true;
>}
>
>Robert O.
>
>----------
>[<http://www.houseoffusion.com/lists.cfm/link=t:4>Todays Threads] [<http://www.houseoffusion.com/lists.cfm/link=i:4:164641>This Message] [<http://www.houseoffusion.com/lists.cfm/link=s:4>Subscription] [<http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=808.728.4>Fast Unsubscribe] [<http://www.houseoffusion.com/signin/>User Settings]
>
>----------
><http://www.houseoffusion.com/banners/view.cfm?bannerid=36>
>a3f95f0.jpg
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to