quarkmike
asked on
Destroy tab link with coldfusion layout tabs
Hi,
I have an issue, on my dev server i use coldfusion 9.0.1, and i use this code to close tab in a cflayout.
here is the code
Everything works fine, but when i use this code on my production server (coldfusion 9.0) whe i click on the link to close tab, the content of the tab close but the tab title still there and don't close.
If someone know how it's possible to close content and title of the tab like it works with the coldfusion 9.0.1.
Thanks
I have an issue, on my dev server i use coldfusion 9.0.1, and i use this code to close tab in a cflayout.
here is the code
l<html>
<head>
<script type="text/javascript">
function destroyTab(){
var activeTab = ColdFusion.Layout.getTabLayout('tabLayout').getActiveTab();
activeTab.destroy();
}
</script>
</head>
<body>
<a href="javascript:destroyTab();">close current tab</a>
<cflayout type="tab" align="center" name="tabLayout">
<cflayoutarea closable="true" name="controlPanel" source="controlPanel.cfm" title="CP">
<div>
<h1>control panel</h1>
blablabla
</div>
</cflayoutarea>
<cflayoutarea closable="true" name="text1" title="text1">
<div>
<h1>control panel</h1>
blablabla
</div>
</cflayoutarea>
<cflayoutarea closable="true" name="text2" title="text2">
<div>
<h1>control panel</h1>
blablabla
</div>
</cflayoutarea>
</cflayout>
</body>
</html>
Everything works fine, but when i use this code on my production server (coldfusion 9.0) whe i click on the link to close tab, the content of the tab close but the tab title still there and don't close.
If someone know how it's possible to close content and title of the tab like it works with the coldfusion 9.0.1.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So use the CF8 method