Validation .js conflicts?

sinemac 31 Jan, 2008
Hi,

I'm using version 2.5 J1.5 RC1 on Joomla! 1.5 Stable, with a template from RocketThemes.com

It appears that when I enable validation in Chrono Forms, there is a conflict somewhere. With validation enabled, the site's newsflash and side menu items don't work properly - and I believe they rely on some javascript.

Is there anything I can do that will get Chrono Forms and my template working nicely together?
GreyHead 31 Jan, 2008
Hi sinemac,

The only answer at the moment is to find the Javascript conflict and edit the scripts to fix it. ChronoForms validation uses the Prototype library, most likely the RocketThemes template uses Mootools and it's unlikely that the two will work together.

ChronoForms 2.3.7 for Joomla 1.0.x has an option to use Mootools but this hasn't been released for Joomla 1.5 yet, and I don't know when Max is likely to update it.

Bob
sinemac 01 Feb, 2008
Thanks for the info, Bob.

Guess I'll have to go without validation for now😟 - since I'd already committed the site design and some other features to the template I'm using.

I'll keep my fingers crossed that the Mootools option will be added to the Joomla 1.5 version soon.😉


Scott
PlayGod 02 Feb, 2008
I have found that even if I choose mootools as the validation for a chronoform that uses the mambot, it still inserts the prototype js instead of the mootools.

Any advice?

Seems like I should be able to delete the code in the *.html.php file that inserts one or the other, but as it seems to be having no effect, what are the chances it'll work?

I may try to just force mootools and only load the validation, not the js library, because my templates already load mootools.<br><br>Post edited by: PlayGod, at: 2008/02/02 04:54
PlayGod 02 Feb, 2008
On second thought, I may just uninstall and reinstall fresh. Maybe it's just the update files that are not working properly.
PlayGod 02 Feb, 2008
Complete uninstall/reinstall had no effect. I am using the mambot method.

I have clearly chosen mootools as the validation method. Still, chronocontact inserts:

<script src="components/com_chronocontact/js/prototype.js" type="text/javascript"></script>
			<script src="components/com_chronocontact/js/effects.js" type="text/javascript"></script>
			<script src="components/com_chronocontact/js/validation.js" type="text/javascript"></script>


:blink:face-meh-blankface-meh-blankface-meh-blank :huh:<br><br>Post edited by: PlayGod, at: 2008/02/02 05:12
PlayGod 02 Feb, 2008
OK, so if you are using the mambot, you have to edit the mambots/content/chronocontact.php file to make the validation section the same as the section in components/com_chronocontact/chronocontact.html.php

And disable Joomla caching from Global Config while you are testing, otherwise you will get a cached form.

B)<br><br>Post edited by: PlayGod, at: 2008/02/02 06:25
GreyHead 02 Feb, 2008
Hi PlayGod,

Glad to see that you solved the mambot version, well done & thanks.

Bob
Ep2 19 Jun, 2008
I had the same problem. I fixed it like PlayGod said and it is still working fine!

Thank you
This topic is locked and no more replies can be posted.