Close a Tab

Is there a way to close a tab with a link or a button similar to the ColdFusion.createTab? I have looked through for the last couple of hours but don't seem to find a way
ISM

Thanks for the reply.
I don't want to hide the tab but rather destroy it. I have ended up doing it this way and it works fine. Not sure why Adobe didn't create a function that closes the tab. I took me hours to find the underlying EXTJS function.
    <script type="text/javascript">
        closeTab = function(tabName){
            // get the underlying EXT object for the tab layout
            var tabs = ColdFusion.Layout.getTabLayout('myTabs');
            // get the tab you want to close
            var tab = tabs.getTab(tabName).id;
   alert(ColdFusion.Layout.getTabLayout('myTabs').removeTab(tabName))
        closeNow = function(){
        closeTab('tab2')
    </script>
<input type="button" onclick="closeNow()" value="close tab">
I wish they make things as easy.
ISM

Similar Messages

  • FF31: When I only have one tab open, even a blank one, and close the tab the window closes.

    FF31: When I only have one tab open, even a blank one, and close the tab the window closes.

    Type '''about:config''' in the Location bar and hit '''''Enter'''''.
    ''Accept the warning.''
    '''browser.tabs.closeWindowWithLastTab'''
    double-click to toggle to '''false''' and then restart Firefox.
    Now if you close the last tab the window (or Firefox) won't close, but a New Tab will be there.

  • I have only one window open, and get a warning when I exit that "You are about to close multiple tabs."

    I have Firefox 8 for Vista, and according to the "About" screen, Firefox is up to date. I heard this might be a problem with my plugins, so I updated them all. Still a problem. I disabled all my plugins and add-ons and still got the message.

    ONLY 8 people have this problem?
    Look, virtually all Mozilla's potential users are coming from Internet Exploder, which gets this ALMOST RIGHT, while FireF*x does it totally wrong. Including in webmail: there's no way I could have got to this forum without leaving 4 windows active or closing everything, including closing my mail without logging out.
    ONLY 8 PEOPLE? How many thousand simply throw up their hands & uninstall yr f- nurdware over this one single issue? Not to bore you with details, but I'm hardly unsympathetic to open sources that don't look like the best argument for Micros**t and Google hegemony.
    Btw, I said they get it -almost- right... It would be really nice if IE or >somebody< offered a checkbox to NEVER close multiple tabs. Look, if this bug disguised as a feature is useful to a few nurds by all means keep it as an advanced option, but PLEASE set up FireFox so it at least defaults to the real world.

  • Since upgrading to 4.0 and now 5.0 tabs do not have tab close buttons and I must use CNTL-W to close open tabs, what's the problem?

    Since upgrading to Firefox 4.0 the close tab button, usually in the upper right corner of the tab has been missing. I have just recently upgraded automatically to 5.0 and the tab close 'X' button is still missing from all open tabs. The only way to close a tab is to click on it and use CNTL-W to close out the tab.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Closing one of the opening windows tries to close all tabs on another window

    I opened two windows, one with multiple tabs and another is no tab, when closing a window with no tab, a prompt window appears and ask if I want to close all tabs on another window. Prompt window appeared twice. Is this a bug?

    I also had this issue and disabling the Awesome Screenshot add-on fixed it for me too. Its not doing it anymore after disabling that plugin. Thanks for the tip!!!

  • Bug - If more then one tab is open and you try to swap tabs or close a tab Firefox closes completely sometimes. This happens on a desktop and 2 laptops I own.

    The first time I reported this was Jul 12. The link back did not work. Since Jul 12 I have been on my daughters desktop, my girlfriends desktop, my laptop and desktop and they will all do the same thing periodically. When more than one tab is open and you try to swap or close a tab Firefox closes completely.
    When I re-open Firefox I never get an error message to report back to Firefox support. Most of the time I get the "This is embarrassing" message and the restore tabs works.
    I should have been reported by other people. Please respond, I will check my email a few times a day, Thank you

    (previous message was https://support.mozilla.com/en-US/questions/849469
    you are supposed to update that message for more help, likely no one has an answer).
    If it were the last tab not multiple tabs then it would have been:
    If you only had one tab open and id not always show the tab strip, that you would close the tab bar.
    Tools > Options > Tabs > [x] Always show the tab bar
    Make sure you have that option on, it is easy to restore a tab if you still have the tab bar you or something closes two tabs as you say. To restore last tab use Ctrl+Shift+T , if two tabs restore that tab as well with same shortcut. Rather than fishing around for it in the History menu as a closed tab, closed window, or a previous session.
    Another possibility is that if there is one extension that mixed up the options like "Close Tab by Double Click" there are probably other extensions that did that as well. If you had that you might have to use the much larger "Tab Clicking Options" and turn off everything but closing a tab on double-click.
    : https://addons.mozilla.org/en-US/firefox/addon/tab-clicking-options/
    : which is not updated for Firefox 5.0, so you would have to override compatibility (it works) with
    * https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    You can make Firefox '''Firefox 5.0''' look like Firefox 3.6.19, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 5.0, or 4.0.1, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''

  • Firefox crashing when i wanna open or close a tab or a window, also while wanna open any page, now what to do for solving the problem?

    Firefox crashing when i wanna open or close a tab or a window, also while wanna open any page, now what to do for solving the problem?

    Disable McAfee siteadvisor and check the problem still persist or not?

  • Since installing 4.0.1 I can't right click on the Icon in my task bar and have Firefox give me the option of "close and save" the tabs. Only let's me know I'm about to close multiple tabs. How do I get "save and close" back?

    Before installing 4.0.1 I could right click on the Firefox icon on my computer's taskbar and hit close window. It would then give me the option to "save tabs and quit" or "close all tabs."
    Now it just alerts me that I'll be closing multiple tabs.
    It was convenient to be able to close Firefox and open it with all of the tabs in place. There is nothing more irritating than having multiple tabs lost because your computer did an update overnight and restarted. Also it was helpful when you wanted to run a tun-up or cleaner that asked you close out of your browser for optimum result's.
    How do I get "save and quit" back?
    Thanks

    Firefox now always stores the old session, and you can access it by going to the History menu and selecting "Restore Previous Session"
    If you want Firefox to display the message to save the session, it can be turned back on by changing some preferences.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.tabs.warnOnClose''', if its value is set to '''false''', double-click on it to change its value to '''true'''
    # Repeat this for these 3 preferences '''browser.warnOnQuit''', '''browser.warnOnRestart''' and '''browser.showQuitWarning'''
    If you always open the last set of tabs, an alternative approach is this:
    # Click the orange Firefox button, then select options to open the options window
    # Go to the General panel
    # Change the setting "When Firefox starts" to "Show my windows and tabs from last time"

  • If I open a PDF doc in a new tab and then try and close the tab with ctrl-w it will try and close all tabs unless I switch to another tab and back again.

    Running Firefox beta and Adobe Acrobat 10. If I open a PDF document in a new tab, say http://support.avaya.com/css/P8/documents/100146419, and then try and close the tab using ctrl-w, I get the message warning me about closing all tabs. If I switch to another tab and then back to the PDF document and then hit ctrl-w, it will just close that one tab and not all tabs.
    Cheers.

    I've just been playing around and I set dom.ipc.plugins.enabled to true and now it closes the PDF document but not the tab. I have to do ctrl-w again to close the tab. However, leaving that set to true ruins the scroll mouse functionality as Acroread seems to want it all to itself.

  • Why DOESN'T Firefox VERSION 6.0.2 warn me when "You are about to close multiple tabs. Do you want to continue"? aka "Confirm Close".

    Hello. I have a Windows 7 HP Mini Netbook 32-bit. I just installed Firefox version 6.0.2 (the most updated one). Under
    Tools ---> Options ---> Tabs, "Warn me when closing multiple tabs" is checked. However, when I have multiple tabs open and I click on "X" (accidentally one time), it closed Firefox. No warning at all. I tested it again and again (checking the box, unchecking it, then checking it again), and it keeps closing all my tabs without warning.
    FYI...I also have a work laptop (Windows XP) and for some reason the "Confirm close" shows up when I try to close multiple tabs.
    Thank you.

    Firefox does not ask to save tabs and windows on exit
    * https://support.mozilla.com/en-US/kb/Firefox%20does%20not%20ask%20to%20save%20tabs%20and%20windows%20on%20exit
    Warning does not appear when closing multiple tabs
    * http://kb.mozillazine.org/Warning_does_not_appear_when_closing_multiple_tabs
    Check and tell if its working.

  • How do I close all tabs at one time without closing Firefox completely?

    How do I close all tabs at one time without closing Firefox completely?

    Open a new window. Go to the other window with all the tab. Close it. You now only have that newly open window.
    Hub

  • How can I only close one tab, not two or more tabs at a time?

    I would like to be able to close one tab, and go back to my email or original page, but I only get the message that I will close all tabs. I would like to be able to close one tab, and go back to the previous tab that I have open, not have to go back and sign in to my email when it should still be open. This works with Internet Explorer, why can it not work with Firefox?

    The dialog Firefox displays when you click the "close window" (X) button doesn't have the option to only close the current tab. Instead, you can use one of these methods to close just the current tab:
    * Click the "x" that should appear on the current tab itself
    * Right-click the current tab > Close tab
    * Press Ctrl+w to close the current tab
    (Note: If you accidentally press Ctrl+w twice, you can re-open the tab by pressing Ctrl+Shift+t to Undo Close Tab)

  • On I-Mac, how can I close all tabs at the same time?

    On I-Mac, how can I close all tabs at the same time?
    I use Mozilla Firefox for internet.

    Not an Apple product, have you visited:
    https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-qu ickly

  • I can no longer close one tab at a time from the file tab. It is no longer an option

    The file tab used to have an option to close one tab at a time. It is no longer available in file. If i close using the "X" it closes all of the tabs out.

    Some menu entries in the main menu bar are hidden if you use the mouse and only appear if you use the keyboard to open the menu (Bug 626825).<br />
    You can see the difference if you use Alt+F to open the File menu or other menus like the Edit menu (Alt+E) and Bookmarks menu (Alt+B) and compare that to what you see if you use the mouse to open the menu after you have made the menu bar visible by tapping Alt or by pressing F10.
    Add code to userChrome.css below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    /* Always show menu entries with class="show-only-for-keyboard" */
    #navigator-toolbox menuitem[class="show-only-for-keyboard"]:not([hidden="true"]){ display:-moz-box !important; }
    </nowiki></pre>

  • When trying to close one tab, i get the message "you are about to close 2 tabs" this is not what I want. I only want to close one tab at a time in English

    I only want to close one tab at a time

    ONLY 8 people have this problem?
    Look, virtually all Mozilla's potential users are coming from Internet Exploder, which gets this ALMOST RIGHT, while FireF*x does it totally wrong. Including in webmail: there's no way I could have got to this forum without leaving 4 windows active or closing everything, including closing my mail without logging out.
    ONLY 8 PEOPLE? How many thousand simply throw up their hands & uninstall yr f- nurdware over this one single issue? Not to bore you with details, but I'm hardly unsympathetic to open sources that don't look like the best argument for Micros**t and Google hegemony.
    Btw, I said they get it -almost- right... It would be really nice if IE or >somebody< offered a checkbox to NEVER close multiple tabs. Look, if this bug disguised as a feature is useful to a few nurds by all means keep it as an advanced option, but PLEASE set up FireFox so it at least defaults to the real world.

  • I would like to close one tab at a time rather than all tabs at once. How do I change this? Right now i am given only one choice "close"

    I have installed Mazilla firefox. Since then I am having to close all open tabs at once, thereby having to start over at the website. I would like to have the option to close one or all tabs when I elect to close.

    Hello,
    To close all tabs only close Firefox, do this by clicking on the '''X '''at the top right of the window, to close one tab just click on the '''x''' at the tab.
    See more here:
    *[https://support.mozilla.org/en-US/kb/tabs-organize-websites-single-window Use tabs to organize lots of websites in a single window]

Maybe you are looking for

  • Selecting multiple values from a search help

    Hi Experts Anyone knows if it is possible to select multiple values from a search help? Thanks Gaurav

  • 11g R2 wont work under windows 2008 R2 doesnt support UTC, and cant change.

    I posted this in error under general, and got no responses. So now Im cutting and pasting it into installation, in a last ditched attemtp to find a way to get a clean installation of oralce on a clean installation of Windows Server 2008 R2 working. P

  • Yoga 2 Pro factory reset (in ubuntu 14.04)

    Hey, i bought a Yoga 2 Pro ~2 months ago and though i had little doubts on win8 I immediately started to love the whole system - the hardware as well as the software. So, I'm on my M.Sc. of computer science and for that (and for private reasons, too)

  • Memory leak in query preparation in dbxml-2.3.10

    Hi, We are using dbxml-2.3.10 in our production. I have ran valgrind and see big memory leaks under two categories: Definetly lost: The complete stack trace is as below: ==25482== 13,932 bytes in 129 blocks are definitely lost in loss record 32 of 35

  • Unable to re-install Adobe Photoshop Elements 10

    My grandson uninstalled my Adobe Photoshop Elements 10 and now I can't seem to re-install it. I've entered my country location (UK) and the serial number from the CD box. The machine goes through the installation process then after a while advises th