Forums

Form does not Validate in IE

hicksticks2001 26 Jun, 2008
Everything seems fine in Firebox, but when using Internet Explorer it does not validate, it just submits.

Bob, if you have a second, I would really appreciate it if you would take a look.

Thanks for your time.

http://www.losbanostesting.org/index.php?option=com_chronocontact&chronoformname=Commission_Application

or

http://www.losbanostesting.org/index.php?option=com_chronocontact&chronoformname=Contact_Us_General

The site is in development now, all submissions go to me, so feel free to try it.
GreyHead 26 Jun, 2008
Hi hicksticks2001,

I took a quick look, you have the MooTools, Prototype and JQuery JavaScript libraries all enabled on the same page. Having two of them usually causes problems - I'd guess that all three guaratees them.

From ChronoForms go to the Validation tab and select the MooTools library. Hopefully this will fix it, if not disable the other features one at a time until you pin down the conflict.

Bob
hicksticks2001 26 Jun, 2008
Bob, thanks for your quick reply. I changed to MooTools and it seemed to fix the problem for me. Followup question: What "features" was I using to enable the other two libraries if all I had selected under validation was ProtoType?

Also, changing the fontcolor and weight under prototype library was easy, mootoo seems alittle more complex... any suggestions?
hicksticks2001 26 Jun, 2008
I got the color thing to work:

This is what I did in MooTools
	'id','advice-'+name+'-'+Validation.getElmID(elm)).setStyle('display','none').setStyle('color','red').setStyle('font-weight','bold').appendText(errorMsg);
This is what I did in Prototype:
var errorMsg = useTitle ? ((elm && elm.title) ? elm.title : v.error) : v.error;
					advice = '<div class="validation-advice" id="advice-' + name + '-' + Validation.getElmID(elm) +'" style="display:none;color:#FF0000;font-weight: bold;">' + errorMsg + '</div>'
GreyHead 27 Jun, 2008
Hi hickstick2001,

You don't need to change the JavaScript to format the messages - just add some css for the 'validation-advice' class.

Bob
GreyHead 27 Jun, 2008
Hi hicksticks2001,

Joomla 1.5 uses MooTools, JCE Utilities is loading JQuery I think

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