Can a Tab close itself from TabPanel?

  1. #1

    Can a Tab close itself from TabPanel?



    Hi,


    I wrote a "New Form" page (With "Save" and "Cancel" button). If user clicks on "Cancel", the page would close itself.


    I used the javascript way, window.close() and it works well when loaded by itself. However, it is not working if loaded from within the TabPanel. It just does nothing. Please points me to the right direction. Thanks so much.


    Regards
    David
  2. #2

    RE: Can a Tab close itself from TabPanel?

    I found a solution. This might not be the best way but it does the job.

    top.CenterPanel.closeTab(top.CenterPanel.getActive Tab());
  3. #3

    RE: Can a Tab close itself from TabPanel?

    hi, ydnah2, It can close by itself.

Similar Threads

  1. How to close tab on dblclick in tabpanel?
    By nanlinfeixue in forum 1.x Help
    Replies: 3
    Last Post: Jan 23, 2013, 4:01 AM
  2. How to close all tabs in TabPanel
    By ozayExt in forum 1.x Help
    Replies: 3
    Last Post: Apr 27, 2012, 11:48 AM
  3. [CLOSED] Cannot cancel tab close in TabPanel
    By Fredrik in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 14, 2012, 12:58 PM
  4. how to close the tabpanel's tab?
    By zg_ivan in forum 1.x Help
    Replies: 2
    Last Post: Dec 13, 2010, 5:25 AM
  5. How to close tabpanel's tab in other window
    By fenya_616 in forum 1.x Help
    Replies: 1
    Last Post: Aug 05, 2010, 7:19 PM

Posting Permissions