Destroy tab link with coldfusion layout tabs

Posted on 2011-05-05
Last Modified: 2012-05-11

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
<script type="text/javascript">

  function destroyTab(){
	  var activeTab = ColdFusion.Layout.getTabLayout('tabLayout').getActiveTab();


<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">
        <h1>control panel</h1>
     <cflayoutarea closable="true" name="text1" title="text1">
        <h1>control panel</h1>
     <cflayoutarea closable="true" name="text2" title="text2">
        <h1>control panel</h1>


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.

Question by:quarkmike
    LVL 81

    Accepted Solution

    LVL 81

    Expert Comment

    So use the CF8 method

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    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…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now