hello and thanks for this component, it's awesome!
I followed the video tutorial for the validation of all the fields, but does't work with my site, i use joomla 1.5.2 with php 4.1
First i tried with the php code to link the prototype.js and validation.js files; then i used the tag <src as you do in the tutorial, but nothing changed, maybe the problem is another.
This is the final code i have inside Form Html:
The form works fine, only te validation doesn't.
Can someone help me with this ?
thanks in advance
I followed the video tutorial for the validation of all the fields, but does't work with my site, i use joomla 1.5.2 with php 4.1
First i tried with the php code to link the prototype.js and validation.js files; then i used the tag <src as you do in the tutorial, but nothing changed, maybe the problem is another.
This is the final code i have inside Form Html:
<script src="http://www.thebamby.com/components/com_chronocontact/prototype.js" type="text/javascript"></script><br>
<script src="http://www.thebamby.com/components/com_chronocontact/validation.js" type="text/javascript"></script>
<p>
<label class="label">Name</label>
<input name="Name" type="text" class="field" value="" />
</p>
<p>
<label><span class="label">Telephone</span></label>
<input name="Telephone" type="text" class="field" value="" />
</p>
<p><label><span class="label">Email</span></label>
<input name="email" type="text" class="field" value="" />
</p><br />
<label>invia
<input type="submit" name="invia" id="invia" value="Invia" />
</label>
<script type="text/javascript" >
new Validation(this);
function formCallback(result, form) {
window.status = "validation callback for form '" + form.id + "': result = " + result;
}
var valid = new Validation('my_form', {immediate : true, onFormValidate : formCallback});
</script>
The form works fine, only te validation doesn't.
Can someone help me with this ?
thanks in advance