I too am getting this problem on a custom template. As far as I can tell Joomla loads mootools anyway if it needs it so I don't know what to do. I'm trying to use ckforms module and the validation won't load. The code is as follows:
Code: Select all
window.addEvent('domready', function(){
var myTips = new Tips('.ckform_tooltip2', {
initialize:function(){
this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 250, wait: false}).set(0);
},
onShow: function(toolTip) {
this.fx.start(1);
},
onHide: function(toolTip) {
this.fx.start(0);
}
});
var myForm = new FormCheck('ckform2', {
fieldErrorClass : 'error',
validateDisabled : true,
display : {
showErrors : 1,
errorsLocation : 3,
indicateErrors : 2,
tipsPosition : 'right',
addClassErrorToField : true,
scrollToFirst : true
},
alerts : {
required:'This field is required.',
number:'Please enter a valid number.',
email:'Please enter a valid email: <br /><span>E.g. yourname@domain.com</span>',
url:'Please enter a valid url: <br /><span>E.g. http://www.domain.com</span>',
confirm:'This field is different from %0',
length_str:'The length is incorrect, it must be between %0 and %1',
lengthmax:'The length is incorrect, it must be at max %0',
lengthmin:'The length is incorrect, it must be at least %0',
checkbox:'Please check the box',
radios:'Please select a radio',
select:'Please choose a value'
}
})
$(document.body).getElements('.captcharefresh').addEvents({
'click': function(){
if($chk($('captchacode'))) {
$('captchacode').setProperty('src', 'index.php?option=com_ckforms&task=captcha&sid=' + Math.random());
}
}
});
});