Tabs and Panels

Hey again. I have a JTabbedPane, with buttons, and another, larger Panel to the right of it. I need to be able to change the main Panel when a button is clicked. Unfortunatly, when I add content to it, the change doesn't show up until I change tabs on my TabbedPane. Changing the background colour works instantly though. Any ideas?
Thanks!

Swing related questions should be posted in the Swing forum.
The method revalidate() is undefined for the type Panel revalidate() is for Swing components.
You shouldn't be mixing AWT components with Swing components. Panel is AWT. You should be using JPanel which is a Swing component.
You could also consider using a CardLayout, which was designed for this purpose:
http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html

Similar Messages

  • Seperating Spry Tabs and Panel.

    I know this is asked a lot. And on some topic someone said it was impossible.
    But i cant believe it cant be done.
    I posted the same message here: http://forums.adobe.com/message/2694106
    But because no one awnsers to it, and i believe it IS possible to alter the Spry code so it works in a seperate way im posting this as a new topic.
    I have a site already and hate to change everything just because i like to use Spry tabbed panels.
    I now have this set up with div floats.
    HEADER
    MENU  CONTENT
    FOOTER
    I already have this working code in the Menu div. The buttons work and the code is ready for Spry if i get the seperate content working.
    <div id="WNavigation">
             <div id="TabbedPanels1" class="VTabbedPanels">
                <ul class="TabbedPanelsTabGroup">
             <li class="TabbedPanelsTab" tabindex="0">
              <style>#Home a{display:block;color:transparent;} #Home a:hover{background-position:left bottom;}a#Home {display:none}</style>
              <table id="Home" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Home">
              <a href="/index.html" title="Home" style="background-image:url(Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
              </li>
             <li class="TabbedPanelsTab" tabindex="0">
              <style>#Info a{display:block;color:transparent;} #Info a:hover{background-position:left bottom;}a#Info {display:none}</style>
              <table id="Info" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Info">
              <a href="/Info.html" title="Info" style="background-image:url(Buttons/Info.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
              </li>
             <li class="TabbedPanelsTab" tabindex="0">
              <style>#Gallerij a{display:block;color:transparent;} #Gallerij a:hover{background-position:left bottom;}a#Gallerij {display:none}</style>
              <table id="Gallerij" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Gallerij">
              <a href="/gallerij.html" title="Gallerij" style="background-image:url(Buttons/Gallerij.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
            </li>
              <li class="TabbedPanelsTab" tabindex="0">
              <style>#Contact a{display:block;color:transparent;} #Contact a:hover{background-position:left bottom;}a#Contact {display:none}</style>
              <table id="Contact" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Contact">
              <a href="/Contact.html" title="Contact" style="background-image:url(Buttons/Contact.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
            </li>
            </ul>
            </div>
         </div>
    I put animated buttons on it. And if i ever get the seperate Content div working i need to change the links to open the panel instead of a normal URL.
    What i want to do next is put the TabbedPanelsContent into the Content div instead of the Menu div.
    But everything i tried didnt work out right.
    The TabbedPanelsTabGroup is now completly in the Menu div and i wish someone can post alternate code that i can put in the Content div.
    So i am not using this code right now: (my page works without it for now)
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    Please let someone make the content and tabs seperate!!!

    WRobN1 wrote:
    I know this is asked a lot. And on some topic someone said it was impossible.
    But i cant believe it cant be done.
    In a previous post I did say that you cannot separate the tabs from the panel. By that I really meant that you must keep the structure, including ID's and CLASSes as follows for the widget to work in its standard format.
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
    </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    If you want to use the DIV <div id="TabbedPanels1" class="TabbedPanels"> as your mainContent area, UL <ul class="TabbedPanelsTabGroup"><div class="TabbedPanelsContentGroup"> as your menu and DIV  as your content area, then that is OK.
    Using style rules you can style the tabs as you wish as well as the content area. You can move the content area down from the tabs using the following style rule
    .TabbedPanelsContentGroup {
       margin-top: 150px;
    As said, it does not matter how you style the widget, the structure must stay intact.
    WRobN1 wrote:
             <li class="TabbedPanelsTab" tabindex="0">
              <style>#Home a{display:block;color:transparent;} #Home a:hover{background-position:left bottom;}a#Home {display:none}</style>
              <table id="Home" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title ="Home"><a href="/index.html" title="Home" style="background-image:url(Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a></td></tr></table></li>
    When you do use the mark-up as above, please remember that by definition  the <STYLE>-tag must be within the <HEAD>-area and try to use DIV's, SPAN's etc instead of using tables.
    I hope the above helps.
    Ben

  • When I open Photoshop CS6, the image does not show in Photoshop. The image IS open, i.e. the filename is shown on a tab and the image layers show in the layer panel. What is going on?

    Both Photoshop and Bridge open as usual. But when I open an image, the image does not show in the image area. The image filename does show in a tab and the layers show in the layer panel. What is going on and how do I fix this.

    I resolved the problem. It was somehow related to my using Microsoft
    theme pictures. I set Windows to use the basic theme and the problem
    went away. Thank you for the suggestions.
    Jac

  • Issue with Panel Tabbed and required property

    Hi All,
    I am using Jdeveloper 11.1.1.4 and I have a pannel tab with 3 tabs and I have an input text in tab2 which is required only in tab2. The problem is when I try to navigate to tab1 from tab2, the required property still shows the error message when nothing is entered .Is there any way to make the required only show the message only when in tab 2??
    Thanks,
    Swathi Patnam

    If you dont want to perform any validations use immidiate=true property. You can use this property either to a button, command link... to most of the ADF components you use to perform any kind of action.

  • On exit, I am not asked if I want to save existing tabs and it closes all of them without saving. How do I get F-F to save my tabs on exit?

    I upgraded from version 3.5 In that version when I wanted to quit for the day, I could hit exit and it would ask me if I wanted to quit or save tabs and exit.
    In version 4 when I hit file, then exit, it does not ask if I want to save the tabs that are open, it just closes everything and does not save them. When I restart, I get a new tab window, but none of the other tabs I was working on are there.
    I need to keep the tabs I am working on available to me; that is what I liked best about the old version.

    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"

  • I Hate Bing and when I click on a Firefox NEW Tab and search I keep getting Bing results, I used to get Google which I would like back, my homepage when opening Firefox is not Bing but all tab searches retrieve Bing results.

    My homepage when opening Firefox is not Bing, yet for some reason today it started using Bing instead of Google for my NEW tab search results. I already deleted Bing from the search bar, no results. Deleted Bing from my computer's control panel. I just want to be able to click a new tab and have my results in google as I always have.

    hello, you have a malicious addon present on your pc. <br>please go to ''firefox > addons > extensions'' & remove ''LyricsParty''.
    also go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software that you have in place and different other tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] & [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner].
    [[Troubleshoot Firefox issues caused by malware]]

  • Tab and option settings

    i am baffled by sudden difficulty setting tabs options so windows display correctly, and i don't understand any of the article explanations. I've noticed from using POGO that suddenly when trying to open a game table in spades, the table window is not opening in a pop up window for just the game table... instead it is opening on my browser window as an added tab. This has made using pogo features extremely difficult, and i don't understand how what I assumed was just a java applet pop up has suddenly become executed as a new browsing tab.
    I am anything but a geek, and have struggled since losing Windows XP . By my grasp of computers, none of the new database or software instructions are written so they can be understood. by this user. Either Mozilla or Windows 7 seems to change feature or options settings without my awareness that the option has been changed.
    The problem specifically now, is opening up a game table window used to open without browsing tab features, and that was simpler. now the new table request is opening as a tab on a browser window and that is just completly handicapping the ability to use the pogo website. I've looked at tools options for tabs and don't understand how any of the choices relate to this navigation problem i'm having with using the pogo site
    ... please help.

    I have corrected all my plug ins and add ons and extensions in firefox. I've gone to control panel and uninstalled duplicates. I've updated all JRE and Java and Shockwave and Flash applications. Mozilla tells me all my add ons exgtensions etc are up to date now. Pogo STILL WILL NOT LOAD A GAME TABLE ANYPLACE BUT IN A BROWSER WINDOW. POGO IS STILL MESSED UP AND I WISH ALL THEIR PROGRAMMING EFFORTS WOULD JUST IMPLODE. THEY ARE THE MOST DISRUPTIVE WEBSITE ON THE WEB. NONE OF THEIR MAINTENANCE AND PROGRAMMAING EVER WORKS CORRECTLY AND ALWAYS CORRECTS MONTHS OF INCORRECT PROCESSING AND JUST PLAIN JUNKY COMPUTER COMMAND/ APPLICATION ACTIVITY. I ALSO THINK WHAT POGO DOES OFTEN CREATES PROGRAMMING BUGS FOR OTHER APPLICATIONS, LIKE CAUSING JAVA AND SHOCKWAVE TO NOT LOAD OR EXECUTE CORRECTL,Y.
    DOES ANYONE AT POGO KNOW WHAT THEY ARE DOING?

  • Problem. Alla my tools and panels are hidden, can´t find them. Have try Windows menyer....... and checked. all is ok.

    Problem. Alla my tools and panels are hidden, can´t find them. Have try Windows>menyer....... and checked. all is ok.

    Press the Tab key, it shows/hides panels.
    Or Window > Workspace > Reset  or use a different workspace.
    Gene

  • How to override traversal keys CTL-TAB and CTL-SHIFT-TAB in JSplitpane?

    Recently added a JSplitpane to a frame with a number of other panels. One of those panels has two actions triggered by CTL-TAB and CTL-SHIFT-TAB. Since adding the JSplitpane those actions no longer trigger, apparently because JSplitPane is ManagingFocusForwardTraversalKeys and ManagingFocustBackwardTraversalKeys.
    I found if I disable the splitpane that the original actions are triggered, but that disables the divider.
    What would be the recommended way to change the behavior of a JSplitpane to ignore CTL-TAB and CTL-SHIFT-TAB?
    This is a list of things I have tried:
    bodySplitPane.getInputMap().remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK));
    bodySplitPane.getInputMap().remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK));
    bodySplitPane.getActionMap().remove("focusOutForward");
    bodySplitPane.getActionMap().remove("focusOutBackward");
    bodySplitPane.setFocusTraversalKeysEnabled(false); // doesn't work
    bodySplitPane.setFocusTraversalKeys(0,new HashSet<KeyStroke>());
    bodySplitPane.setFocusTraversalKeys(1,new HashSet<KeyStroke>());
    bodySplitPane.enableInputMethods(false);
    //bodySplitPane.setEnabled(false); // false allows ctl-tab to pass through but freezes the divider so it can't be moved via mouseThanks in advance.
    Jeff
    Edited by: 837741 on Dec 6, 2012 1:11 PM
    Edited by: 837741 on Dec 6, 2012 1:13 PM

    Found this in the tutorial (http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html) which solved the problem for me:
    bodySplitPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK),"none");
    bodySplitPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK),"none");Turns out my left splitpane has no focusable components, but might be that if it did I would have needed to set the action in the other two input maps as well like this:
    bodySplitPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK),"none");
    bodySplitPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK),"none");
    bodySplitPane.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK),"none");
    bodySplitPane.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, InputEvent.CTRL_MASK | InputEvent.SHIFT_MASK),"none"); Contrary to what the tutorial says, "none" seems to work as the action for any of the input maps, and "nil" or any string seems to work. I found no need to define an action class as the tutorial states and the tutorial does not show any use of the action inner class.
    Also found this helpful http://www.ibm.com/developerworks/java/jdk/additional/IBM50KeyBindings.html
    Edited by: 837741 on Dec 7, 2012 7:25 AM

  • I want to open new tabs with other ones open. So I click the + button for tabs and it does nothing. I right click and click new tab and still nothing. How do I get that feature to work again.

    I click the + button to open a new tab and it doesn't do anything, not even open a new tab. I try to right click and open a new tab and still don't work. But if I right click a link and click open in new tab it will work. How do I get to open my tabs again with the + button?

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • ANN: Linking to non-default Spry tab or panel - tutorial

    Spry 1.6 includes a file called SpryURLUtil.js that makes it
    easy to
    link to a specific tab or panel in a Tabbed Panels or
    Accordion widget.
    I've created a step-by-step tutorial explaining how to use
    it. You can
    find it on my site at the following URL:
    http://foundationphp.com/tutorials/spry_url_utils.php
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

    That should be built in, as it is in all PVII Widgets.
    Being how Spry has grown to be such an important part of your
    books and
    other writings, perhaps you would agree (and maybe even be
    able to influence
    Adobe) that what Spry needs is a re-writing rather than
    updates.
    Al Sparber - PVII
    http://www.projectseven.com
    Extending Dreamweaver - Nav Systems | Galleries | Widgets
    Authors: "42nd Street: Mastering the Art of CSS Design"
    "David Powers" <[email protected]> wrote in message
    news:fokosr$l1e$[email protected]..
    > Spry 1.6 includes a file called SpryURLUtil.js that
    makes it easy to link
    > to a specific tab or panel in a Tabbed Panels or
    Accordion widget. I've
    > created a step-by-step tutorial explaining how to use
    it. You can find it
    > on my site at the following URL:
    >
    >
    http://foundationphp.com/tutorials/spry_url_utils.php
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "The Essential Guide to Dreamweaver CS3"
    (friends of ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • Creating panel stack and panel in CSC

    Hello,
    I'm trying to create a panel stack and a panel in CSC 10.0.3 through the following XMLs that are executed in the repositories */atg/svc/ui/framework/ServiceFrameworkRepository_read/* and */atg/svc/ui/framework/ServiceFrameworkRepository_production/*:
    The panel XML is as follows:
    <add-item item-descriptor="PanelDefinition" id="cmcAbandonedOrdersP">
         <set-property name="appId" value="workspace"/>
         <set-property name="panelId" value="cmcAbandonedOrdersP"/>
         <set-property name="titleKey" value="cmcAbandonedOrdersP"/>
         <set-property name="resourceBundle" value="atg.commerce.csr.FrameworkResources"/>
         <set-property name="contentUrl" value="/panels/abandonedOrders/abandonedOrders.jsp"/>
         <set-property name="otherContext" value="taQi"/>
         <set-property name="templateIds" value="panelTemplate=panelTemplate"/>
         <set-property name="tabHolderYn" value="false"/>
         <set-property name="allowContentToggleYn" value="false"/>
         <set-property name="allowTabbingYn" value="false"/>
         <set-property name="accessRight" value="cmcAbandonedOrders"/>
    </add-item>and the panel stack XML:
    <add-item item-descriptor="PanelStackDefinition" id="cmcAbandonedOrdersPS">
         <set-property name="appId" value="workspace"/>
         <set-property name="panelStackId" value="cmcAbandonedOrdersPS"/>
         <set-property name="errorPanelId" value="errorPanel"/>
         <set-property name="header" value="contentHeader"/>
         <set-property name="titleKey" value="cmcAbandonedOrdersPS"/>
         <set-property name="resourceBundle" value="atg.commerce.csr.FrameworkResources"/>
         <set-property name="panelIds" value="errorPanel,cmcAbandonedOrdersP"/>
    </add-item>Besides, another XML is executed to add a tabDefinition:
    <update-item item-descriptor="TabDefinition" id="WsCommerceTabDefinition">
         <set-property name="panelStackAssignments" value="cmcAbandonedOrdersPS=contentColumn" add="true" />
         <set-property name="panelStackOrder" value="cmcAbandonedOrdersPS" add="true" />
    </update-item>Though, when trying to open CSC, after these changes have been executed, the following error happens:
    **** Error     Qui Dez 06 09:17:03 BRST 2012     1354792623226     /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-87/atg/svc/framework/Framework     Error finding panel stack instances     CONTAINER:atg.svc.repository.service.exception.ObjectNotFoundException: Error finding framework object. id=null, item-desciptor=null; SOURCE:javax.ejb.ObjectNotFoundException
    **** Error     Qui Dez 06 09:17:03 BRST 2012     1354792623226     /atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-87/atg/svc/framework/Framework          at atg.svc.repository.service.UIService.getNewConfig(UIService.java:1898)Anyone has any idea of what is causing this? or is anything missing?
    The creation of the panel and panel stack were made refering to topic 7 of this link:
    http://docs.oracle.com/cd/E22630_01/Service.1002/pdf/CSCInstallProgGuide.pdf
    Thanks,
    Renã Treto

    Hello rtreto!
    Like Barcellos said, you will need to add the panel stack on versioned repository too.
    To do this, you will need to execute something linke this on /atg/svc/ui/framework/ServiceFrameworkRepository-ver/
    Important, look ':1' on id, it is because versioned repository has composite key.
    <add-item item-descriptor="PanelDefinition" id="cmcAbandonedOrdersP:1">
           <set-property name="panelId" value="cmcAbandonedOrdersP"/>
           <set-property name="Id" value="cmcAbandonedOrdersP"/>
           <set-property name="resourceBundle" value="br.com.compasso.atg.commerce.csr.FrameworkResources"/>
           <set-property name="contentUrl" value="/panels/abandonedOrders/abandonedOrders.jsp"/>
           <set-property name="otherContext" value="taQi"/>
           <set-property name="version_deleted" value="false"/>
           <set-property name="titleKey" value="cmcAbandonedOrdersP"/>
           <set-property name="branch_id" value="10100"/>
           <set-property name="checkin_date" value="12/6/2012 13:30:00"/>
           <set-property name="objectType" value="PanelDefinition"/>
           <set-property name="asset_version" value="1"/>
           <set-property name="appId" value="workspace"/>
           <set-property name="accessRight" value="cmcAbandonedOrders"/>
           <set-property name="workspace_id" value="10400"/>
           <set-property name="templateIds" value="panelTemplate=panelTemplate"/>
           <set-property name="historyIdProperty" value="cmcAbandonedOrdersP"/>
           <set-property name="version_editable" value="false"/>
           <set-property name="is_head" value="true"/>
           <set-property name="tabHolderYn" value="false"/>
           <set-property name="allowContentToggleYn" value="false"/>
           <set-property name="allowTabbingYn" value="false"/>
    </add-item>
    <add-item item-descriptor="PanelStackDefinition" id="cmcAbandonedOrdersPS:1">
           <set-property name="resourceBundle" value="br.com.compasso.atg.commerce.csr.FrameworkResources"/>
           <set-property name="panelStackId" value="cmcAbandonedOrdersPS"/>
           <set-property name="version_deleted" value="false"/>
           <set-property name="titleKey" value="cmcAbandonedOrdersPS"/>
           <set-property name="branch_id" value="10100"/>
           <set-property name="checkin_date" value="12/6/2012 13:30:00"/>
           <set-property name="panelIds" value="errorPanel,cmcAbandonedOrdersP"/>
           <set-property name="objectType" value="PanelStackDefinition"/>
           <set-property name="asset_version" value="1"/>
           <set-property name="errorPanelId" value="errorPanel"/>
           <set-property name="appId" value="workspace"/>
           <set-property name="header" value="contentHeader"/>
           <set-property name="Id" value="cmcAbandonedOrdersPS"/>
           <set-property name="workspace_id" value="10400"/>
           <set-property name="historyIdProperty" value="cmcAbandonedOrdersPS"/>
           <set-property name="version_editable" value="false"/>
           <set-property name="is_head" value="true"/>
    </add-item>
    <add-item item-descriptor="accessRight" id="cmcAbandonedOrders">
    <set-property name="type">generic</set-property>
    <set-property name="name"><![CDATA[cmcAbandonedOrders]]></set-property>
    <set-property name="description"><![CDATA[Allowed to access the Abandoned Orders tab]]></set-property>
    <set-property name="scope">organization</set-property>
    </add-item>
    <update-item  item-descriptor="role" id="csrManager">
           <set-property name="accessRights" add="true" value="cmcAbandonedOrders"/>
    </update-item>

  • Accordion tabs w/panel sub-nav - default open issues

    I have a spry accordion in a left sidebar, and I'm using it as navigation for a slideshow for a website I'm working on. Each of my 5 accordion tabs has a different category of slideshow, with each panel having multiple sub-navigation links that each link to a different slideshow which appears in the main part of the page (to the right of the sidebar). Say it's something like this:
    VENUES (tab)
    (start panel)
    Bayside Restaurant (link)
    Historic Ballroom (link)
    Western Ranch (link)
    (end panel)
    ACTIVITIES (tab)
    (start panel)
    Surfing (link)
    Dancing (link)
    Horse back riding (link)
    (end panel)
    The sub-navigation to each slideshow is activated by simply clicking on the text, which I linked with the "point to file" link tool in the properties menu. 
    Ideally, I'd like to work with one template in Dreamweaver for all pages/slideshows I'm creating, but I'm running into a problem.  I know how to change the default panel in the .js so that a different one appears open when a user first accesses the page, but I can't figure out how to get the default panel to change when the user clicks on a different panel and attempts to use the subnavigation.  The subnavigation works just fine (it takes the user to the correct slideshow), but then the panel snaps shut instead of remaining open on the one the user selected.
    (So, to further explain with the example above, say the user wanted to look at all the links in the "Venues" tab, but the default is to have the "Activities" tab open on arrival.  The "Venues" tab opens just fine on the click, but as soon as the user clicks on, say "Bayside Restaurant," the correct slideshow appears to the right, but then the "Venues" tab snaps shut and the "Activities" tab and its sub-navigation appears open again. The user then has to click on the "Venues" tab again if s/he wants to see the other options and view a different slideshow, rather than simply being able to click on the next link.) 
    I tried making multiple templates, with different default panels open as a solution, but that's not working either. . .for some reason it keeps defaulting back.  
    Does this make sense?  Are there any solutions to this problem? Any help would be much appreciated.
    Thanks!
    Rebekka

    I think I found your problem.  It lies in the Javascript:
    <script language="JavaScript" type="text/javascript">
    var indexAccordion = new Spry.Widget.Accordion("indexAccordion");
    var acc1 = new Spry.Widget.Accordion("indexAccordion", { useFixedPanelHeights: false });
    </script>
    You have essentially duplicated the code in order to accomodate the useFixedPanelHeights.  Consolidate it into single one, and remove the duplicate:
    <script language="JavaScript" type="text/javascript"> var acc1 = new Spry.Widget.Accordion("indexAccordion", { useFixedPanelHeights: false }); </script>
    IE might be having trouble understanding the double instances of the script and is ignoring the latter one.  Just keep the latter one and it might fix it.
    Also, thanks for the tip, but I use Chrome's Developer Tools... it just didn't cross my mind since I've been busy =)

  • Would like new window to open in new tab as to opening in an exsisting tab and replacing open window

    Would like new window to open in new tab as to opening in an exsisting tab and replacing open window

    Could you describe the problem or problems in more detail? For example:
    * Are you clicking a link in page open in Firefox, or following a link from a different application?
    * Do you want different things to happen between those two cases?
    Background: Pages have a range of ways to set up a link. These can include:
    (A) Same window or tab (default)
    ''To change how this is handled, you can manually Ctrl+click the link to open it in a new tab, or use an add-on like Tab Mix Plus to override the default.''
    (B) New blank window (target="_blank")
    ''On the Tabs panel of the Options dialog, the first checkbox determines whether you see a new window or a new tab in the current window.''
    (C) Named target (e.g., target="MyApp")
    ''On the Tabs panel of the Options dialog, the first checkbox determines whether you see a new window or a new tab in the current window.''
    HOWEVER, if the site already used this named target before and the window/tab is still open, Firefox will re-use that window/tab and replace the current page with the new page.
    ''To change how this is handled, you can manually Ctrl+click the link to open it in a new tab, or perhaps an an add-on can override the default.''
    (D) Scripted (pop-up) window
    ''This can be the same as any of the above, or the page can bypass the new window/new tab setting by specifying certain features of the new pop-up window. There is a hidden override if you are running into this problem (browser.link.open_newwindow.restriction).''

  • Windows updates removes all tabs and tab groups so I have to regularly do a system restore to get them back.

    When there is an automatic update from Windows or Microsoft Security Essentials, it regularly has removed all my tabs and tab groups. A very frustrating occurance so I have to do a system restore to get all these back. Any solutions to this issue?

    After your computer restarts, you should be able to choose '''[[Session Restore|"Restore Previous Session" from Firefox's History menu]]''' to restore all your tabs and groups from last time.
    For this to work, Firefox must be set to remember history in the [[Options window - Privacy panel]].

Maybe you are looking for