Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: errors in validator settings structure?
woodyrnr
Newbie

Posts: 1
Registered: 1/26/2009
Location: Columbus, OH USA
Member Is Offline
posted on 5/5/2009 at 05:04 PM Reply With Quote
errors in validator settings structure?


I thought I was good at this ...
My order form fails to return an error with invalid or missing-and-required entries. Several times I made same mistake as "viet," had a comma after the last element in fields string, but that's not the problem here (I hope). Finally ripped all but one of the form fields out of the form, now the fields string has just one element, still won't validate.
I know I'm going to groan when someone points out my mistake ...
...
<form action="PointForm_beta.html" method="get" name="goodForm" onSubmit="return v.exec()">
<table width="672" border="1" cellpadding="3" cellspacing="2" bordercolor="#FFFFFF" id="Sub Table 1">
<tr>
<td id="t_nameOnCard"><div align="right"><strong>Name as it appears on card:</strong></div>
</td>
<td><input name="nameOnCard" type="text" id="nameOnCard" size="50" maxlength="50" />
</td>
</tr>
<tr>
<td><div align="right"><span class="style10"><strong>Click Submit:</strong></span></div>
</td>
<td><label for="Submit"></label><input name="Submit" type="submit" value="Submit"/>
<input name="Clear " type="reset" id="Reset" value="Clear " />
</td>
</tr>
</table>
</form>
...
<script language="javascript">
// form fields description structure
var a_fields = {
'nameOnCard' : {'l':'Name On Card','r':true,'f':'alpha','t':'t_nameOnCard','mn':'5','mx':'50'}
},
o_config = {
'to_disable' : ['Submit'],
'alert' : 1
}
// validator constructor call
var v = new validator('goodForm', a_fields, o_config);
</script>

Any ideas?
Thanks, and best regards
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page Product Page
Product Demonstrations Product Demos
Registration Form Validation
Login Form Validation
Free Download Free Download
Product Documentation Documentation
Documenation Page
Change Log
Validators Comparison Table
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004