Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Inshik.Min. on Sep 12, 2009 04:51
open dhtmlx forum
dhtmlXTabBar.tabWindow function error

Hello. I had the error while upgrading my application to 2.5...

test1.html
----------------------------------------------------------------------------------------------------
<html>
<head>
<LINK rel="stylesheet" href="./dhtmlx_pro_full/dhtmlx.css" type="text/css">
<SCRIPT language="JavaScript" src="./dhtmlx_pro_full/dhtmlx.js"></SCRIPT>
<script>
var gImagePath = "./dhtmlx_pro_full/imgs/";
</script>
</head>

<body>
<table>
<tr>
<td>
<a href="javascript:test();">test</a>
</td>
</tr>
<tr>
<td valign="top">
<div id="tabbar" style="width:600px; height:480px; background-color:white;"></div>
</td>
</tr>
</table>
<script>
var tabbar = new dhtmlXTabBar('tabbar');
tabbar.setHrefMode("iframes");
tabbar.setImagePath(gImagePath);
tabbar.addTab("a1", "Tab1", "100px");
tabbar.addTab("a2", "Tab2", "100px");
tabbar.setContentHref("a1", "page1.html");
tabbar.setTabActive("a1");

function test() {
alert(tabbar.tabWindow("a1").onload); // alert onLoad function in test1.html file. (--)
tabbar.tabWindow("a1").test(); // javascript error occurred at this line.
}
</script>
</body>
</html>

page1.html
-----------------------------------------------------------------------------------------
<html>
<head>
<script>
function test() {
alert("test1");
}
</script>
</head>

<body onLoad="var vTest='1';">
Page 1.
<body>
</html>
Answer posted by Support on Sep 14, 2009 10:06
Regression is confirmed and fixed. 
Updated js file will be sent by email. 
( full package will be updated in the nearest time as well )