Dear All,
I am using third part tab. So I have build the tabs nicely and include the code like below. The problem now is that when one of the tab is press it call the javascript. So that is when I dont know how to pass the $dD or $dK value to be set true. If pure php I know how to do it but I dont know how to pass the value via the javascript. I have tried putting <?php ?> in the javascript but no sucess too. Any help please.
<?php
require "KoolTabs/kooltabs.php";
echo"dD".$dD;
echo "dK".$dK;
//Step 2: Create kooltabs object.
$kts2 = new KoolTabs("kts");
//Step 3: Set properties for kooltabs
$kts2->styleFolder = "KoolTabs/styles/silver";
//Step 4: Add tabs for KoolTabs: addTab($parentid,$id,$text,$link)
$kts2->addTab("root","dD","dD","javascript:showTab(\"dD\")",$dD);
$kts2->addTab("root","dK","dK","javascript:showTab(\"dK\")",$dK);
?>