Hi i have tried to call this function on an onclick event but it doesn't work..
<script type="text/javascript">
function valKey(){
var Key
Key = document.form1.minvin.value;
if (/[AaMmSs]{1}[0123456789]{6}/g.test(Key)) == true {
document.form1.form.submit ;
else
alert("Vin format is...
Thanks, this works. How would you get it to display false if there are more than 6 digits and display an alert saying "incorect format" or somthing?
kindest thanks.
Hi i have this working vb function which i need to call on an onclick event in javascript...
function ValKey(Vin)
dim k, i, s, b
k= ""
if len(Vin) = 7 then
s = UCase(mid(Vin,1,1))
if s = "A" or s = "S" or s = "M" then
b = true
for i = 2 to 7
if not IsNumeric(mid(Vin,i,1)) then b =...
you can find detailed info on how to create the common back flip method at http://www.pcworld.com/news/article.asp?aid=14055 and there is also great info on news groups. but be careful this is something Crystal doesn’t want you to use , so if you call for support on it ( they will play dumb...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.