I have made a simple example on I am dealing with KoolTabs and the example works fine, my real application do not, though.
<?php
$KoolControlsFolder ="../../KoolPHPSuite/KoolControls";
require $KoolControlsFolder."/KoolAjax/koolajax.php";
require $KoolControlsFolder."/KoolTabs/kooltabs.php";
$ktm = new KoolTabs("ktm");
$ktm->scriptFolder = $KoolControlsFolder."/KoolTabs";
$ktm->styleFolder="office2007";
$ktm->position = "top";
$ktm->Width = "1000px";
$this_tab = $ktm->addTab("root","tsFirst","First Tab",NULL,true);
$this_tab->width = "200px";
$this_tab = $ktm->addTab("root","tsSecond","Second Tab",NULL,false);
$this_tab->width = "200px";
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Solve this please!</title>
<META name="purpose" content="check and show KoolTabItem::select method behaviour">
<META name="generator" content="Rapid PPHP 2015">
<script type="text/javascript">
//-----------------------------------------------
// Global VariƔbles
//-----------------------------------------------
var Blocks = ["first","second","code"];
function pageLoad()
{
var blk = null;
for( var i=0; i < Blocks.length; ++ i ){
blk = document.getElementById(Blocks[i]);
if(blk) blk.style.display = "none";
}
blk = document.getElementById("first");
if(blk) blk.style.display = "block";
if( ktm ) { ktm.registerEvent("OnSelect", ktmTabSelect); }
}
//----------------------------------------------------------------------
function selectChosen()
{
var tabItem = null;
selObj = document.getElementById("seltab");
if(selObj){
if(selObj.selectedIndex > 0 ){
tabItem = ktm.getTab(selObj.options[selObj.selectedIndex].value);
if(tabItem) tabItem.select();
}
else alert("You must choose a tab to select!");
}
}
//----------------------------------------------------------------------
function ktmTabSelect( sender, arg )
{
var blk = null;
blk = document.getElementById("first");
if(blk) blk.style.display = "none";
blk = document.getElementById("second");
if(blk) blk.style.display = "none";
blk = document.getElementById("altprop");
if(blk) blk.style.display = "none";
blk = null;
if( arg.TabId == "tsFirst") blk = document.getElementById("first");
if( arg.TabId == "tsSecond") blk = document.getElementById("second");
if(blk) blk.style.display = "block";
}
//----------------------------------------------------------------------
</script>
<STYLE type="text/css">
<!--
-->
</STYLE>
</head>
<body onload="pageLoad();">
<?php echo $koolajax->Render(); ?>
<div id="header">
<p>
<select name="seltab" id="seltab" style="margin: 0px 8px 0px 50px;">
<option value="tsNone"></option>
<option value="tsFirst">First Tab</option>
<option value="tsSecond">Second Tab</option>
</select> <input type="button" value="Select Tab" onclick="selectChosen();" />
</p>
</div>
<div id="tabcnt"> <?php echo $ktm->Render(); ?> </div>
<div id="first" style="display: block;" class="ktItem"><p style="margin: 30px; font: italic bold 24px/30px Arial, Sans Serif">This is the content of the First Tab</p></div>
<div id="second" style="display: block;" class="ktItem"><p style="margin: 30px; font: italic bold 24px/30px Arial, Sans Serif; color: #CC0000">This is the content of the Second Tab</p></div>
<div id="code" style="display: block;" class="ktItem">
<textarea name="" id="codeText" style="resize: none; width: 1000px; height:400px; overflow:auto; "></textarea>
</div>
</body>
</html>