| 
Welcome, Guest

Creating List - javascript problems
(1 viewing) (1) Guest

TOPIC: Creating List - javascript problems

Re:Creating List - javascript problems 2 years, 2 months ago #126420

  • bbalkanski
  • bbalkanski
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
Here's a working solution, but it ain't very neat:
 function _outputToHead( ) {
global $_CB_framework, $ueConfig;
 
$jVersion = checkJversion();
$customHead = $this->_renderHead();
if ( $this->_headsOutputed && ( $jVersion == 0 ) ) {
return $customHead . "\n";
}
if ( ! $this->_tryCmsDoc( 'addCustomTag', $customHead ) ) {
if ( isset( $ueConfig['xhtmlComply'] ) && $ueConfig['xhtmlComply']
&& ( ( ( $_CB_framework->getUi() == 1 ) || ( ( $jVersion == 0 ) && function_exists( 'josHashPassword' ) ) ) && method_exists( $_CB_framework->_baseFramework, 'addCustomHeadTag' ) ) )
{
// versions 1.0.13 (in fact 1.0.12 too) and above have it in backend too:
$_CB_framework->_baseFramework->addCustomHeadTag( $customHead );
} else {
return $customHead . "\n";
}
}
$this->_headsOutputed = true;
return $customHead . "\n";
}
function _renderCheckOutput( ) {
if ( $this->_headsOutputed ) {
// $customHead = $this->_renderHead();
// echo $customHead; // better late than never...
 
}
echo $this->_outputToHead();
}


Post edited by: bbalkanski, at: 2010/03/10 11:58

Post edited by: bbalkanski, at: 2010/03/10 12:01
The topic has been locked.

Re:Creating List - javascript problems 2 years, 2 months ago #126428

  • nant
  • nant
  • ONLINE
  • Administrator
    Administrator
  • Posts: 17323
  • Karma: 717
CB 1.2.2 has been released and is compatible with PHP 5.3.
Please upgrade.
The topic has been locked.
Time to create page: 0.84 seconds