Script error on page with Chronoform

cre8tive1 30 Jan, 2008
I added a chronoform via the mambot to the home page of a site I'm developing. Since this site is from RocketTheme and uses Mootools I choose 'Mootools' from the 'Select Validation Library' in the form configuration.

However, I'm still getting an error. Specifically a 'slim box' element is appearing at the bottom of the page just below the Chronoform.

I tried changing the 'Select Validation Libarary' option to 'prototype' with no success.

Does anyone have any suggestions on how to correct this error?

Thanks for any and all suggestions,<br><br>Post edited by: cre8tive1, at: 2008/04/02 03:30
GreyHead 30 Jan, 2008
Hi cre8tive1,

I've no idea why slimbox is on the page - looks to me like a template problem. The ChronoForms code looks good to me.

It maybe that there is a Javascript conflict between Roktools and Mootools - but again that's not a ChronoForms problem as far as I can see.

Sorry not to be more help.

Bob
joshwoodcock 01 Feb, 2008
I had this same problem when I was embedding the form using the mambot. I found that if I go directly to the form it validates fine in IE as long as I choose mootools from the list in the component.

NOTE: You have to be using chronoforms 2.3.7 to get the mootools option.

I think that if there is not a newer mambot than version .04 someone should create a new one that switches to mootools lib when the option is changed in the component.

I did figure out a hack fix though. Edit the code for the mambot /mambots/content/chronocontact.php

Replace the lines (around line 161)

<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>



With these:

<script src="components/com_chronocontact/js/mootools-release-1.11.js" type="text/javascript"></script>
<script src="components/com_chronocontact/js/mooValidation.js" type="text/javascript"></script>


Forums image 1
http://www.wabaco.com
GreyHead 01 Feb, 2008
Hi Josh,

Thanks, very helpful hack.

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