Forums

[Solved]Broken frontend view

Freezaman 04 Dec, 2013
hi, i have made form in chronoforms and it works fine, but when i look at it in frontend view it's broken. tips are not working, inputs aren't hidden and validation doesn't work neither. Console doesn't show why. I think it's problem with jquery and mootools.I read some Faqs and topics in forum but i don't understand that no-conflict mode.

thanks for any help.🙂
GreyHead 04 Dec, 2013
Hi Freezaman,

There's a JavaScript error showing in the template 'stylechanger'. Please try disabling that if it's possible and see if the form is then OK.

Bob

PS The error is "Uncaught TypeError: cannot call method 'set' of null" and is in this function:
function addControls() {
	var container = document.id('fontsize');
	var content = '<h3>'+ fontSizeTitle +'</h3><p><a title="'+ biggerTitle +'"  href="#" onclick="changeFontSize(2); return false">'+ bigger +'</a><span class="unseen">.</span><a href="#" title="'+resetTitle+'" onclick="revertStyles(); return false">'+ reset +'</a><span class="unseen">.</span><a href="#"  title="'+ smallerTitle +'" onclick="changeFontSize(-2); return false">'+ smaller +'</a></p>';
	container.set('html', content);
}
It looks as though the container in the last line doesn't exist.
Freezaman 04 Dec, 2013
It is a Joomla! js, but after removing it from the server, it works well. I think it has something to do with Resizer, which was in the top right of the website, which I removed.

thank you for the quick and accurate answer.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger