Let me just say first that this is an amazing component.
I created a form according to the validation tutorial. There is a bug in the form creation and another upon loading the page.
This code is added to the HTML:
var valid = new Validation('my_form', {immediate : true, onFormValidate : formCallback});
And this is added to the Form Tag attachment:
"id=my_form"
ChronoForm creates two id's for the form:
<form name="ChronoContact_test_form" id="ChronoContact_test_form" method="post" action="index.php?option=com_chronocontact&task=send&chronoformname=test_form" id="my_form">
The "my_form" id is ignored at validation because the form's id is also "ChronoContact_test_form."
If I change the Form Tag to
"id=ChronoContact_test_form"
the form now has two id's of "id=ChronoContact_test_form"
and the validation works but the form displays an error on loading:
Line 9
Char 186
Error 'this.element' is null or not an object
code 0
URL http://candogo.com/index.php?option=com_chronocontact&chronoformname=test_form
"this.element" is referenced in components/com_chronocontact/js/ effects.js and prototype.js
I get straightforward errors in IE. In firefox error console I get an error I'm pretty sure is just a red herring:
Error: $$.shared has no properties
Source File: http://candogo.com/mambots/system/jceutils/jscripts/mootools.js
Line: 55
This feels like a DOM IE getElementBySomethingICantCauseImIE type of bug but that would not explain why Firefox cascades it over to Mootools.
Any ideas? I'm way over my head javascript wise.
thank you!!
I created a form according to the validation tutorial. There is a bug in the form creation and another upon loading the page.
This code is added to the HTML:
var valid = new Validation('my_form', {immediate : true, onFormValidate : formCallback});
And this is added to the Form Tag attachment:
"id=my_form"
ChronoForm creates two id's for the form:
<form name="ChronoContact_test_form" id="ChronoContact_test_form" method="post" action="index.php?option=com_chronocontact&task=send&chronoformname=test_form" id="my_form">
The "my_form" id is ignored at validation because the form's id is also "ChronoContact_test_form."
If I change the Form Tag to
"id=ChronoContact_test_form"
the form now has two id's of "id=ChronoContact_test_form"
and the validation works but the form displays an error on loading:
Line 9
Char 186
Error 'this.element' is null or not an object
code 0
URL http://candogo.com/index.php?option=com_chronocontact&chronoformname=test_form
"this.element" is referenced in components/com_chronocontact/js/ effects.js and prototype.js
I get straightforward errors in IE. In firefox error console I get an error I'm pretty sure is just a red herring:
Error: $$.shared has no properties
Source File: http://candogo.com/mambots/system/jceutils/jscripts/mootools.js
Line: 55
This feels like a DOM IE getElementBySomethingICantCauseImIE type of bug but that would not explain why Firefox cascades it over to Mootools.
Any ideas? I'm way over my head javascript wise.
thank you!!