If I go into my form data to edit it, the page loads with a JavaScript error and the page will not submit. This happens in IE 8 and the latest Firefox. I have included the error message below. One thing I noticed is that the actual form and the edit data page call different versions of the validation script:
The original form calls:
/public_html/components/com_chronocontact/js/jsvalidation2.js
Editing the form data calls:
/public_html/administrator/components/com_chronoconnectivity/js/jsvalidation2.js
Webpage error details
Line 158 in the script is the line below that says if(message):
The original form calls:
/public_html/components/com_chronocontact/js/jsvalidation2.js
Editing the form data calls:
/public_html/administrator/components/com_chronoconnectivity/js/jsvalidation2.js
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 3.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 6 Aug 2009 02:47:56 UTC
Message: 'message' is undefined
Line: 158
Char: 5
Code: 0
URI: [DOMAIN TAKEN OUT]/administrator/components/com_chronoconnectivity/js/jsvalidation2.js
Message: Object doesn't support this property or method
Line: 59
Char: 102
Code: 0
URI: [DOMAIN TAKEN OUT]/media/system/js/mootools.js
Line 158 in the script is the line below that says if(message):
if ( ['checkbox', 'radio'].contains(type) ) {
if(field.hasClass('validate-one-required')){
if( message) { var message_validate_one_required = message; }
name.add( Validate.One_Required, {
elm : field,
failureMessage: message_validate_one_required
});
fieldsarray[fieldsarray_count] = name;
fieldsarray_count = fieldsarray_count + 1;
}
}