hemmoDWC
Junior Member
Posts: 2
Registered: 11/29/2006
Member Is Offline
|
| posted on 11/29/2006 at 05:17 AM |
|
|
var V not defined
Hi there,
I am trying to install the Tigra Form Validator on a website, but somehow it gives the error "V not defined".
V is the name of the validator instance, but somehow it doesnt define it, but it cannot find it (doh, we're not looking for it, we're creating
it)...
Can somebody help me?
See att. for the source of the page
Attachment: The source that matters....txt (2.5kb)
This file has been downloaded 337 times
|
|
|
hemmoDWC
Junior Member
Posts: 2
Registered: 11/29/2006
Member Is Offline
|
| posted on 11/29/2006 at 05:19 AM |
|
|
*note: It doesn't work when the config-stuff is at the bottom of the file, under the form itself
*note2: The contactpage runs in an iframe, personally i dont think it matters but it could be so i'd better post it here :-)
|
|
|
rimbertr
Junior Member
Posts: 5
Registered: 1/25/2006
Member Is Offline
|
| posted on 7/13/2007 at 09:23 PM |
|
|
What I see looks correct.
Did you make sure to load the validator.js only in the header section?
<head>
.
.
.
<script language="JavaScript" src="js/validator.js" type="text/JavaScript">
</script>
.
.
.
</head>
|
|
|
tigra
Administrator
Posts: 1920
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/7/2008 at 02:46 AM |
|
|
1. make sure path to validator.js is correct and file loads into the document (you can check that in server's error log or in the browser (I prefer
firebug plugin for stuff like this))
2. validator must be initialized after the form's closing </form> tag, preferably at the very end of the document. All elements with IDs and
names mentioned in the configuration must exist by the time of the validator's initialization.
3. make sure validator.js is not corrupted. Some web editors take the liberty to modify javascript files without asking.
|
|
|