>>Well... i have a javascript validation script that can take a regex
pattern to check against.
Are you named "Web Exp" for "Web Expert"?
Regexp are good at checking strings, not integer values.
Your "javascript validation script that can take a regex" is just not
the good tool.
You would need just a couple of lines in Javascript to do the job. IE
(not tested):
function checkValue()
{
var myValue = document.myFormul.myfield.value;
var intValue = parseInt(myValue.10);
if (myValue.match(/^[0-9]+$/)) return (intValue >= 1 && intValue <=
1400);
if (myValue.match(/^[0-9]+%$/)) return (intValue >= 1 && intValue
<= 100);
return false;
}
--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304165
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4