Remembering which tab was selected in panelTabbedPane

I need to have a way such that a panelTabbedPane would be dynamic. it has to remember the last selected tab or set which tab would be activated. Ex. i click tab3 of a tabbed page then it goes to a non-tabbed page, if i press CANCEL on the non-tabbed page it should go back to the tab3 - the calling tab, instead of the selectedIndex tab or like the default tab.
Is tabChangeListener an option and how can that be implemented?
Can you help me out? thank you.

Hi Vj
Are you saying that you have multiple parameters and that in each parameter the user can pick a different value and that you then want the system to sort in the order of those items?
With some manipulation of the data you can do it. Here is what I would do and I will assume there are 3 parameters called User1, User2, User3:
1. Create a new calculation called MySort like this:
CASE WHEN "User Name" = :User1 THEN '1'|| "User Name" WHEN "User Name" = :User2 THEN '2'||"User Name" ELSE '3'||"User Name" END
2. Now you create a Group Sort on this new calculation and make it hidden - the items will then appear in the order you entered them in parameters 1, 2 and 3
If you want to use a single parameter and allow your user to enter up to three value then this can be done too but you have to change the parameter to not allow the user to key multiple values. Instead you will be using a single parameter with each individual value separated by something other than a comma, say a /.
What you do next is use the SUBSTR command to split out the individual pieces and use those in your condition such as:
"User Name" = Value1 OR "Use Name" = Value2 OR "User Name" = Value3, where Value1, Value2 and Value3 come by splitting up the single parameter into multiple values.
With this done you do a similar job as I showed you at the beginning for completing the sort:
CASE WHEN "User Name" = Value1 THEN '1'|| Value1 WHEN "User Name" = Value2 THEN '2'|| Value2 ELSE '3'|| Value3 END
Best wishes
Michael

Similar Messages

  • After reopening Firefox does not remember which desktop was used for each window. Can you help, please.

    I'm using two displays and several desktops on my Mac (OS X 10.9.4).
    When I need to restart Firefox, it remembers to open windows from last session in correct display, but does not remember which desktop was used for each window. So when the application starts, it opens all windows on a desktop which is currently active instead of reopening them on desktops used during the last session. How to fix the issue?

    Hi Nerva,
    Thank you for your question, there is a add on I have been recommended to custom set up of opening windows in new monitors. It's called [https://addons.mozilla.org/en-US/firefox/addon/monitor-master/ Monitor Master].
    However, in regards to the session remembering which monitor the window was open in, in the profile folder there is a file that stores window positions and dimensions. It is called localstore.rdf.
    Please stay tuned for more investigation, as there are definitely bugs on file for similar issues. Pinpointing it is the hard part.

  • Which Technology was selected then creating Master Repository for ODI?

    Hi,
    Which Technology was selected then creating Master Repository for ODI SQL Server 2003? Which technolgy must be selected?
    First of all I created master repository for ODI on SQL Server 2003 via Microsoft SQL Server, it did not work.
    I checked the Driver and URL as below
    com.microsoft.sqlserver.jdbc.SQLServerDriver
    jdbc:sqlserver://<servername>:<PortNumber>;selectMthod=cursor;databasename=<databasename>;integratedsecurity=false
    there is a error as below
    com.sunopsis.tools.core.exception.SnpsRuntimeException: com.sunopsis.tools.core.exception.SnpsRuntimeException: Unable to find the XML file corresponding to your technology.
         at oracle.odi.sdk.repository.OdiRepositoryManager.createMasterRepository(OdiRepositoryManager.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.d(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.f(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.a(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.a(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard$IvjEventHandler.actionPerformed(MasterRepositoryWizard.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: com.sunopsis.tools.core.exception.SnpsRuntimeException: Unable to find the XML file corresponding to your technology.
         at com.sunopsis.repository.manager.RepositoryManager.masterRepositoryCreation(RepositoryManager.java)
         ... 29 more
    Caused by:
    com.sunopsis.tools.core.exception.SnpsRuntimeException: Unable to find the XML file corresponding to your technology.
         at com.sunopsis.repository.manager.RepositoryManager.masterRepositoryCreation(RepositoryManager.java)
         at oracle.odi.sdk.repository.OdiRepositoryManager.createMasterRepository(OdiRepositoryManager.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.d(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.f(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.a(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard.a(MasterRepositoryWizard.java)
         at com.sunopsis.wizards.MasterRepositoryWizard$IvjEventHandler.actionPerformed(MasterRepositoryWizard.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    okan
    Edited by: ankist on Jan 15, 2010 2:46 PM

    It is highly recommended to use the JDBC Driver for SQL Server 2005, even if you are using SQL Server 2000. In ODI's pre-populated lists, it is not there - you will have to (1) get the driver yourself, downloadable from the Microsoft site. (get the driver v1.2, not the 2.0, and use a JRE v1.5, 1.5 or 1.6. The 2.0 driver from Microsoft requires the JRE 1.6)
    (2) use the
    Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
    and the URL: jdbc:sqlserver://<myserver>:<myport, default 1433>;database=<mydb>;selectMethod=cursor
    these are not automatic, you will need to type them in.
    The database must be configured for connections from tcpip.
    For more information see the blog: http://odiexperts.com/?tag=sql-server-2005

  • How do you specifically let the Itemlistener know which Item was selected..

    How do you specifically let the Itemlistener know which Item was selected in a JComboBox? Anyone has any idea? What should the coding look like?

    getSelectedItem()

  • How do you specifically let an Itemlistener know which Item was selected?

    How do you specifically let the Itemlistener know which Item was selected in a JComboBox? Anyone has any idea? What should the coding look like?

    Hi,
    Try this method
    String[] petStrings = { "Bird", "Cat", "Dog", "Rabbit", "Pig" };
    JComboBox petList = new JComboBox(petStrings);
    if ( petStrings[0]==(String)petList.getSelectedItem() )
    System.out.println("I'm a bird");
    }else{

  • JTabbedPane - vertical - which tab is selected?

    Using the Windows L&F, if you have the tabs in a JTabbedPane arranged horizontally it is clear and obvious which tab is selected. But with the tabs arranged vertically you've got to look very carefully to see which tab is selected, as there are rather fewer changes than for horizontal tabs.
    I can't be the first person whose users have complained about this - what's the conventional solution?
    (One thought is to make the background colour of the non-selected tabs "a bit darker"; I guess that would look OK but wouldn't mind a pointer as to how to do this in such a fashion that it will still work when the user changes the desktop colour scheme.)

    Using the Windows L&F, if you have the tabs in a JTabbedPane arranged horizontally it is clear and obvious which tab is selected. But with the tabs arranged vertically you've got to look very carefully to see which tab is selected, as there are rather fewer changes than for horizontal tabs.
    I can't be the first person whose users have complained about this - what's the conventional solution?
    (One thought is to make the background colour of the non-selected tabs "a bit darker"; I guess that would look OK but wouldn't mind a pointer as to how to do this in such a fashion that it will still work when the user changes the desktop colour scheme.)

  • How do I find out which tab was pressed?

    Our site is using tabs. We have few portlets in different tabs whose custom rendering depends on which tab the user has clicked.
    Programmatically, how do we find out which tab was pressed?
    We're using portal 9.0.4. Thanks for your help.
    Ashraf

    Thanks Sanjay for your quick reply!
    Option 2 looks like a potential solution. Not quite elegant as you indicated, but will work.
    I recall reading somewhere, before the release of 9.0.2.6, that in upcoming version 9.0.2.6/9.0.4 you should be able to programmatically determine the last tab clicked. If you could kindly confirm whether no such built-in mechanism (API, etc.) exist to find out last tab clicked in portal version 9.0.4? We're looking to implement this feature in database provider environment.
    Thanks again for your help.
    Ashraf

  • Identifying which line was selected from a WebDynpro table

    Hi,
    can any one give me some advice, I've created a view which displays a table of filenames, which in fact are "LinkToAction" columns. The idea was that when a filename(LinkToAction) was selected, I could retrieve the appropriate file from the Applicatio server and Open the file in Excel or Save as Excel. My problem is, when I select a filename I don't know how to identify what line was selected in the table. Any advice would be great.
    Thanks,
    C

    Hi , Just identify its element which is lead selected and read attribut of that element .
    Have the code for the same
    DATA:
        node_nd_worlflow                    TYPE REF TO if_wd_context_node,
        elem_nd_worlflow                    TYPE REF TO if_wd_context_element,
        stru_nd_worlflow                    TYPE wd_this->element_nd_worlflow ,
        lead_selection_index                TYPE i,
        relation_no                         TYPE guid_32.
    navigate from <CONTEXT> to <ND_WORLFLOW> via lead selection
      node_nd_worlflow = wd_context->get_child_node( name = wd_this->wdctx_nd_worlflow ).
    @TODO handle not set lead selection
      IF ( node_nd_worlflow IS INITIAL ).
      ENDIF.
    get element via lead selection
      lead_selection_index = node_nd_worlflow->get_lead_selection_index( ).
      elem_nd_worlflow = node_nd_worlflow->get_element( index = lead_selection_index ).
    elem_nd_worlflow->get_static_attributes( IMPORTING static_attributes = stru_nd_worlflow ).
    Cheers
    Parry

  • Knowing which Row was selected when Hide/Show is clicked

    Hi everyone,
    I have an advanced table, with some search criteria that works. I have added a "detail" flag and when I click the link Hide/Show, the details are displayed.
    How can I get in the code which Hide/Show link was clicked? I am more interesting in getting the Row from the VO which the Hide/Show link was clicked?
    When I get the "event" parameter from the pageContext (pageContext.getParameter("event") ) it returns "hide" or "show", but I don't know which was row that was clicked.
    What I am trying to accomplish is the following. In my advanced table I have "Select" checkBoxes. I want to add the "Hide/Show details" functionality and try to have the details displayed in an advanced table with its own "Select" checkBoxes.
    Can it be done?

    Hi,
    Create a Primary Key in View Object's Query for the table.
    Now to know on which row hide/show has been clicked you need to capture the row reference which is nothing but Primary Key for that row.
    Use this code in processformrequest:
    if(("hide".equalsIgnoreCase(pageContext.getParameter("event"))))
    String rowReference = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    TestMassDeleteSearchVORowImpl row = (TestMassDeleteSearchVORowImpl)am.findRowByRef(rowReference);
    String lname = (String) row.getSelectFlag();//to get the value of checkbox
    Thanks,
    Gaurav

  • Htmlb:tabstrip = check in %code& which tab is selected

    i have a htmlb:tabstrip with 2 tabs.
    tab1 is quite small and tab2 shows a huge table, which is loaded in "OnSelect" of tab2.
    if i start at tab1 and click on tab2, it takes a while, but that's OK concerning the large table.
    BUT if i then click on tab1 again (which also has a onSelect Event Handler and leads to a page refresh), i also takes a while because in tab2, the huge table is included into the html-file although it is not shown. Tab 2 looks like this:
    <htmlb:tabStripItem id = "tab2" index = "2"             onSelect = "os2" >
    <htmlb:tabStripItemHeader>
    bla </htmlb:tabStripItemHeader>
    <htmlb:tabStripItemBody>
    <% IF application->table1 IS NOT INITIAL. %>
    <%-- show table ... --%>
    <% ENDIF. %>
    My question: The code <%-- show table --%> should not be executed if the current tab is tab1. Is that possible?

    Make a page attribute called MyTabSelection TYPE STRING
    then on your OnInputProcessing Event Handler
    DATA:
      event TYPE REF TO cl_htmlb_event,
      tabstrip_event TYPE REF TO cl_htmlb_event_tabstrip.
    event = cl_htmlb_manager=>get_event( request ).
    if event->name eq htmlb_events=>tabstrip and event->id eq 'MyTabs'.
      tabstrip_event ?= event.
      myTabSelection = tabstrip_event->selection.
    endif.
    Be sure to change the event->id eq 'MyTabs' to the id you gave to your <htmlb:tabStrip
    Then on your page
    <% IF MyTabSelection EQ 'tab2'
          AND table IS NOT INITIAL.
    %>
       ....Do table here....
    <% ENDIF. %>

  • JSpinner and finding which item was selected...

    With a JComboBox, I can load up my list with an array and use "getSelectedIndex()" to grab the index number of the item the user selects.
    With a JSpinner (SpinnerListModel), I can load up my list with an array but there doesn't appear to be any way to retrieve an index number. Am I missing something? The best thing I can come up with is to use "getValue()" and search my array for that value and then I'd have the correct index. Seems the long way around to me.
    I have other elements in the array I need to get to based on the users selection.
    -Duane

    If you're creating your own object class to use in the list of possible values, you could make the array index be an instance variable in this class. I just had to do something like this recently. As in:
    class MySpinnerValue
      public int index;
      public String name;
      //  ... other useful stuff
      public String toString()
        return name;
    // ... and somewhere we create the list, like ...
    MySpinnerValue[] list=new MySpinnerValue[10];
    for (int x=0;x<10;++x)
      MySpinnerValue v=new MySpinnerValue();
      v.index=x;
      list[x]=v;
    }Then when you retrieve a value you just check index to see where it is in the array.
    Clumsy, yes, because it relies on setting an index value equal to the array subscript, which is redundant data in a sense. (Ah, there were advantages to pointers in C, you could just say "pEntry-entry[0]" to get the index ...)

  • Remembering which tabbed panel I left

    I have a web page that uses several Spry tabbed panels to display different sub-sets of volunteers who have applied to volunteer at an airshow. Alongside each volunteer is a link to a page that allows an administrator to edit the volunteer information, that is the user could have started from any one of 4 tabs and gone to the same page to edit the volunteer info. When the edit is complete it returns to the original web page and opens the default tab, I'd like it to return to the original web page and open the tab it left. I have read http://foundationphp.com/tutorials/spry_url_utils.php and think I understand it, but before I can do that I need to pass the tab number from the original page to the edit page, and then when the edit is complete pass that back to the original page.
    I think I know how to pass the tab number to the edit page - I'd add &tab=x to the link URL (where "x" is the tab number I'm leaving). The problem I'm having is figuring out how to access that parameter in the edit page and then send it back when the edit is complete.
    To see what I mean look at www.hollisterairshow.com/login.php and use username "q" and password "q" without the quotes, this will take you to the Control Panel or "original web page" I referred to above. Look at any/all of the "Volunteer" tabs and you'll see they all provide a link to an "editvolunteer.php" page. When the edit is complete I'd like the user to be returned to the Control Panel and in the tab they were in.
    Thanks for any suggestions,
    Tony

    Hi Tony,
    You will need to use cookies for this. Normally I point to Arnout Kazemier's page for this but it has been down for some time now.
    Dooza(Steve) seems to have found a solution, just not sure what, but have a look here http://forums.adobe.com/message/3281366#3281366
    If you send Steve a PM he will probably help you out.
    Ben
    PS: in case you need it, the following is SpryCookie.js
    Spry.Utils.Cookie = function(type /* string*/, name /* string */, value /* string or number */, options /* object */){
         var     name = name + '=';
         if(type == 'create'){
              // start cookie string creation
              var str = name + value;
              // check if we have options to add
              if(options){
                   // convert days and create an expire setting
                   if(options.days){
                        var date = new Date();
                        str += '; expires=' + (date.setTime(date.getTime() + (options.days * 86400000 /* one day 24 hours x 60 min x 60 seconds x 1000 miliseconds */))).toGMTString();
                   // possible path settings
                   if(options.path){
                        str += '; path=' + options.path                   
                   // allow cookies to be set per domain
                   if(options.domain){
                        str += '; domain=' + options.domain;
              } else {
                   // always set the path to /
                   str += '; path=/';
              // set the cookie
              document.cookie = str;
         } else if(type == 'read'){
              var c = document.cookie.split(';'),
                   str = name,
                   i = 0,
                   length = c.length;
              // loop through our cookies
              for(; i < length; i++){
                   while(c[i].charAt(0) == ' ')
                        c[i] = c[i].substring(1,c[i].length);
                        if(c[i].indexOf(str) == 0){
                             return c[i].substring(str.length,c[i].length);
              return false;
         } else {
              // remove the cookie, this is done by settings an empty cookie with a negative date
              Spry.Utils.Cookie('create',name,null,{days:-1});

  • Is it possible to have the accordian remember which pane was open when the browser jumps to a new page

    I have the same accordion on all of my pages and I would like
    to have the accordion maintain the same open status that the user
    selected after the browser refreshes. IE. it is a 3 pane setup...
    common to all pages with the same content in each pane on all
    pages. The default is pane 1. If the user selects pane 2 then jumps
    to a new page I would like pane 2 top be displayed on the new page,
    not pane 1.
    Thoughts?

    V1 fusion,
    Hope you feel better.... I tried this and am getting ( syntax
    error
    [Break on this error] if (!Spry.Utils) Spry.Utils = {};\n )
    vw2ureg,
    That seems to have corrected the url... it is now (
    http://site.name.com/index.php?option=com_content&task=blogcategory&id=25&pane=0&Itemid=55
    However it is still not picking up the pane. I am getting
    this error in the console:
    [Exception... "Component is not available" nsresult:
    "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
    file:///Applications/Firefox.app/Contents/MacOS/components/nsSessionStore.js
    :: sss_saveState :: line 1749" data: no]
    [Break on this error] oState.session = { state:
    ((this._loadState == STATE_RUNNING) ? STATE_RUNNIN...
    Refering to this line in
    http://sitename.com/SpryAssets/SpryAccordion.js
    oState.session = { state: ((this._loadState ==
    STATE_RUNNING) ? STATE_RUNNING_STR : STATE_STOPPED_STR) };

  • Spaces needs to remember which window was active

    If I have a few finder windows open in one space, and a Safari window on top of them for instance, if I then switch to another space and use finder (or just look at an empty desktop) and when I switch back to the first space all the finder windows are on top of Safari. This is verry anoying and can be even uglier when you run a fullscreen app in one space.

    Hi Hansii
    I also find this annoying and have not been able to find a way around it, so the best thing to do would be to send feedback to apple.
    You can send your feedback to apple here:
    http://www.apple.com/feedback
    Please read the Unsolicited Idea Submission Policy here:
    http://www.apple.com/legal/policies/ideas.html
    J.C

  • Spry Tabbed Panels 2 - Remember Last Tab

    Using the Spry UI Tabbed Panels 2, has anyone found a way for the page to remember which tabbed was last viewed?
    I can see that I can use the showPanel() method to set the panel, and I can use the getCurrentTabIndex() to retrieve the current tab index, but I am not sure what to do with them next.
    I am thinking about maybe setting a cookie with the current tab index, but I don't know what to attach the onclick event to. Should I use a spry selector to add the onclick attribute to the a tag that is automatically generated?
    Does anyone else have any clever ideas?
    Cheers,
    Steve

    THANK YOU VERY MUCH GRAMPS!:  THIS DID WORK!
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Spry Accordion</title>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet">
    </head>
    <body>
    <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>
    <script src="SpryAssets/SpryTabbedPanels.js"></script>
    <script>
    var Spry; if (!Spry) Spry = {}; if (!Spry.Utils) Spry.Utils = {};
    // We need an unload listener so we can store the data when the user leaves the page
    // SpryDOMUtils.js only provides us with a load listener so we create this function
    Spry.Utils.addUnLoadListener = function(handler /* function */)
        if (typeof window.addEventListener != 'undefined')
            window.addEventListener('unload', handler, false);
        else if (typeof document.addEventListener != 'undefined')
            document.addEventListener('unload', handler, false);
        else if (typeof window.attachEvent != 'undefined')
            window.attachEvent('onunload', handler);
    Spry.Utils.Cookie = function(type /* String*/, name /* String */, value /* String or number */, options /* object */){
        var name = name + '=';
        if(type == 'create'){
            // start cookie String creation
            var str = name + value;
            // check if we have options to add
            if(options){
                // convert days and create an expire setting
                if(options.days){
                    var date = new Date();
                    str += '; expires=' + (date.setTime(date.getTime() + (options.days * 86400000 /* one day 24 hours x 60 min x 60 seconds x 1000 milliseconds */))).toGMTString();
                // possible path settings
                if(options.path){
                    str += '; path=' + options.path               
                // allow cookies to be set per domain
                if(options.domain){
                    str += '; domain=' + options.domain;
            } else {
                // always set the path to /
                str += '; path=/';
            // set the cookie
            document.cookie = str;
        } else if(type == 'read'){
            var c = document.cookie.split(';'),
                str = name,
                i = 0,
                length = c.length;
            // loop through our cookies
            for(; i < length; i++){
                while(c[i].charAt(0) == ' ')
                    c[i] = c[i].substring(1,c[i].length);
                    if(c[i].indexOf(str) == 0){
                        return c[i].substring(str.length,c[i].length);
            return false;
        } else {
            // remove the cookie, this is done by settings an empty cookie with a negative date
            Spry.Utils.Cookie('create',name,null,{days:-1});
    var cookie = Spry.Utils.Cookie('read','panel');
    //alert(cookie);
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab: cookie ? parseFloat(cookie) : 0});
    Spry.Utils.addUnLoadListener(function(){
        Spry.Utils.Cookie('create','panel',TabbedPanels1.getCurrentTabIndex());
    </script>
    </body>
    </html>

Maybe you are looking for

  • Aperture loose link with Referenced Masters

    I just upgraded to Aperture 2 and spent days organizing and creating an elaborate library of referenced files. The masters were placed on an external HD via FW 800. Things were working perfectly until I launched Aperture and there was no sign of my l

  • JSP with Visual Age integrator

    Using the public beta of WA Integrator for WL 5.1, I was able to use all the feature of WL, except JSP. Infact, WL compile them using jspc, but then, when execute javac as an external process, cannot compile them into class file because javac can't s

  • IMac sees MacBook Pro, MacBook Pro does not see iMac?

    When I click Network in the finder on my iMac it always finds the MacBook Pro. However, when I click network on my MacBook Pro it does not always find the iMac. What is more confusing is that DropCopy works between the two machines no problem, so the

  • Cannot install free trial DL of PS CS6

    I get an error message with a link that directs me to DL a support program to fix it and when I get to the link it states that Adobe no longer supports the program.  What do I do now?

  • BADI question

    Hi All, Is it possible to do something like : when we put material in MIGO which doesnt exist in matl master for example "aaa", then we will get error message : "no hits were found for the material you entered aaaa" and focus is still in material. Do