?
Solved

Destroy tab link with coldfusion layout tabs

Posted on 2011-05-05
2
Medium Priority
?
791 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:quarkmike
  • 2
2 Comments
 
LVL 83

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 35762513
0
 
LVL 83

Expert Comment

by:leakim971
ID: 35762516
So use the CF8 method
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question