Forums

Submit button does not work

teoce 19 Jun, 2009
Hi

I have just made my second installation of chronocomments. First installation works really good and i love it very much but now i have a problem. Submit button does not work. It's sure a compatibily problem with my template but i can't change the template and i don't wont to use another comment component. Any idea? The link to home page is: http://www.scontornare.it

Thank you very much and sorry for my bad english
GreyHead 19 Jun, 2009
Hi teoce,

There's a JavaScript error showing
Firebug's log limit has been reached. %S entries not shown.		Preferences	 
Fx.Style is not a constructor
submitCommentForm("x1")scripts.js (line 231)
onclick(click clientX=1039, clientY=443)WICzzuRX...aeA%3D%3D (line 2)
[Break on this error] 'loading': new Fx.Style( 'ccloading', 'opacity',{ duration: 200 } ),

I suspect that this is becasue you are loading Mootools 1.2 and not 1.1 but I can't find the version number to check.

Bob
teoce 19 Jun, 2009
Thank you very much

I think you are right, here sime template line:

// Remove this files from the head of the template
	unset($this->_scripts[$this->baseurl . '/media/system/js/mootools.js']);
	unset($this->_scripts[$this->baseurl . '/media/system/js/caption.js']);
 
// Add this files on the head of the template 
	$this->_scripts = array_merge(array($template_baseurl . '/js/ice-menu.js' => 'text/javascript'), $this->_scripts);
	 
	if($gzip == "true") :
    $this->_scripts = array_merge(array($template_baseurl . '/js/mootools.php' => 'text/javascript'), $this->_scripts);
 	else:
	$this->_scripts = array_merge(array($template_baseurl . '/js/mootools-1.2-more.js' => 'text/javascript'), $this->_scripts);
	$this->_scripts = array_merge(array($template_baseurl . '/js/mootools-1.2.1-core-nc.js' => 'text/javascript'), $this->_scripts);
	endif;


Does chronocomments work with mootools 1.2?

Thank you
GreyHead 19 Jun, 2009
Hi teoce,

The Moovalidation,js file that ChronoComments uses is written for MooTools 1.1 and - as you see - breaks with 1.2.

There is a very similar library included in the current MooTools releases (see here) but I haven't see it used with ChronoComments.

Bob
teoce 19 Jun, 2009
Thank you very much for your response.

So i think i have only 2 possible ways:

1) change template
2) change comment component

I'm not very lucky today.
Thank you.
This topic is locked and no more replies can be posted.