Forums

Yet another validation not working issue

akashmitra 04 Apr, 2012
Hi

Here is the issue, Validation checks in my form are not working and the form is getting posted without any data.
Validation is not working even when tried without template (by putting &tmpl=component). 😟

We do use jQuery but jQuery is not loaded in without template mode.
And also In normal mode, I tried with jQuery.noConflict() - without any fruitful result.

I can see the script is throwing these errors (using Chrome Developer tool)... but I am not a JavaScript guy, so could not make any sense of it.

[*]Uncaught ReferenceError: Class is not defined (formcheck-yui.js)
[*]Uncaught ReferenceError: Class is not defined (formcheck-max.js)
[*]Uncaught ReferenceError: Class is not defined (datepicker.js)
[*]Uncaught TypeError: Object [object DOMWindow] has no method 'addEvent' (index.php)
[*]Uncaught SyntaxError: Unexpected token ILLEGAL (index.php)
[*]Uncaught Error: JavaScript API Domain is restricted to dwbiconcepts.com (userspace)

Here is a link to the form http://www.dwbiconcepts.com/index.php?option=com_chronoforms&chronoform=IPR.
It would be really helpful, if one of you can point me the issue.

Thank You!

- Akash Mitra
GreyHead 04 Apr, 2012
Hi Akash,

Well - without the template you don't use jQuery and the validation works Ok (at least it does for me in FireFox). With the template you do use JQuery and the validation doesn't work. That may be a clue.

I'm afriad that it's up to you to fix it though - as you've seen there are many threads here on the topic. The easy solution is to throw out whatever is using jQuery.

Bob
nktheone 20 Jan, 2013
The validation is not working on my form as well. I have the following errors when using Chrome's debugger:
Uncaught ReferenceError: Class is not defined formcheck-yui.js:1
(anonymous function)
Uncaught ReferenceError: Class is not defined formcheck-max.js:1
Uncaught TypeError: Object [object Window] has no method 'addEvent' index.php:43

Can you please help me understand the issue? Thanks!
This topic is locked and no more replies can be posted.