Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
meiko #1
Alphanumeric Expression
I need to verify that user are entering 9 alpha-numeric characters.....no more...no less. Could someone tell me what the correct expression is for that?
Thanks!
meiko Guest
-
preserve leading zeros in alphanumeric values from doc.info
I store an alphanumeric data item in a doc.info object, and retrieve it to populate form fields in the doc and in a dynamic stamp. This works fine... -
alphanumeric randomized image
On Thursday 25 Sep 2003 23:10, Michael P. Carel wrote: This was covered not more than 24 hours ago, and is in the archives. It's also been... -
Alphanumeric sort
Chris, Please tell me how you did that. I need it also. Chris wrote in message <007301c355f1$e6edcf90$a401280a@phx.gbl>... -
Forcing Alphanumeric Text Entry
Hello all. Disclaimer, I am a Perl newbie. Though I know a good deal of shell, and some PHP, Perl is, otherwise, new territory for me. I've... -
Function to test alphanumeric
Anyone have a function or method (that could be converted to a function) whereby one could test or check a CHAR or VARCHAR column so that it... -
adonis1976 #2
Re: Alphanumeric Expression
<script type="text/javascript">
function isok(string) {
if (string.search(/\w{9,9}/) != -1)
return true;
else
return false;
}
function validator(form) {
if (isokl(form.field_name.value) == false) {
alert("Please enter a string.");
form.field_name.focus();
return false;
}
</script>
and call the validator function onSubmit in the form definition as follows:
onSubmit="return validator(this);"
adonis1976 Guest



Reply With Quote

