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: TFV not working on this one form but everywhere else is fine.
clubbing80s
Junior Member

Posts: 2
Registered: 4/25/2007
Member Is Offline
posted on 4/26/2007 at 12:40 PM Reply With Quote
TFV not working on this one form but everywhere else is fine.


Hi
I have on form that I cant get TFV to work on, the submit button just acts as it TFV doen't exist. Mybe a second pair of eyes will see what I have missed..



<snip>
<script language="JavaScript" src="../include/validator.js"></script>
<style>
.tfvHighlight {color: red;}
.tfvNormal {color: black;}
.inputHighlighted {color: red;}
.inputNormal {color: black;}
</style>
</snip>
<snip>
<form action="<?=$PHP_SELF?>" method="post" onsubmit="return v.exec()" name="recpass">
</snip>
<snip>
<input type='hidden' name="wizzard" value="getstnr" />
<tr><td width='25%'>&nbsp</td><td id="id_stnr" align="right">Student Nr</td><td><input type="text" name="stnr" /></td><td width='25%'>&nbsp</td></tr>
<tr><td>&nbsp</td><td>&nbsp</td><td><input type="submit" name="Submit" value="Next>>" /></td></tr>
</table>
</form>
<?php
print "
<script>
debug,
var a_fields = {
'stnr' : {'l' :'Student', 'r': true, 'f' :'integer', 't' :'id_stnr'}
},
o_config = {
//'to_disable' : ['Submit'], 'alert' : 1
}
var v = new validator('recpass', a_fields, o_config);
</script>";
?>
</snip>
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 4/26/2007 at 02:37 PM Reply With Quote

replace
o_config = {
//'to_disable' : ['Submit'], 'alert' : 1
}
with
o_config = {
'to_disable' : ['Submit'],
'alert' : 1 + 4
}

this will also enable the debug messages
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