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
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>

Open in new window


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
quarkmikeAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
0
 
leakim971PluritechnicianCommented:
So use the CF8 method
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.