[TYPO3-dev] JavaScript rendered twice

Tapio Markula tapio.markula at dnainternet.net
Mon Aug 28 10:21:51 CEST 2006


Hi

I tryed to add JavaScript only for two pages, which needs it
in
class.ux_ux_SC_alt_db_navframe.php

	function init() {
		global $BACK_PATH,$BE_USER,$TBE_STYLES,$skin_grey_2Conf;
		parent::init();
...				
			$this->doc->JScode .= '

well - the JS-code was rendered *twice* => JavaScript didn't work.
Presumably the reason was that the code was added
both to the instance, which have been defined in

class.ux_SC_alt_db_navframe.php (that might also use parent function call)
and now.

How I could define so, that the JavaScript would be rendered just once?




More information about the TYPO3-dev mailing list