Linking to a specific panel from another page and from higher up on same page Spry-UI-1.7

Hi all,
I am using Spry-UI-1.7 for a 4 tab tabbed panel on the bottom of my home page.  I'd like to link to the second tab from another page and also from the top of the home page.
I previously used method: http://foundationphp.com/tutorials/spry_url_utils.php and it worked great.
Now, with the Spry-UI-1.7 Tabbed Panel "widget", that method isn't working.
I've reviewed the code from the samples page: http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_sample.htm
but cannot figure out what I am doing wrong.  It shows the following code for linking from another page:
<a href="#" onclick="TabbedPanels2.showPanel(1); return false;">Tab 2</a>
I tried this 'as is' and it didn't work. 
I tried it with index.html in place of the # and it didn't work.
(e.g.   <a href="index.html" onclick="TabbedPanels2.showPanel(1); return false;">Tab 2</a>   )
What am I missing here?
(I have the tabbed panel on "index.html" and want to link from "maps.html" and from the top of "index.html"
Thanks for any help for this spry newbie! (read: I need it spelled out like I was a 6 yr. old

This works
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
<script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryPanelSelector.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryTabbedPanels2.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/plugins/TabbedPanels2/SpryFadingPanelsPlugin.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/plugins/TabbedPanels2/SpryTabbedPanelsKeyNavigationPlugin.js" type="text/javascript"></script>
<link href="Spry-UI-1.7/css/TabbedPanels2/SpryTabbedPanels2.css" rel="stylesheet" type="text/css">
<script type="text/javascript"> var params = Spry.Utils.getLocationParamsAsObject(); </script>
<script type="text/xml">
<!--
<oa:widgets>
  <oa:widget wid="2138522" binding="#TabbedPanels2" />
</oa:widgets>
-->
</script>
</head>
<body>
<div id="TabbedPanels2">
  <h2>Tab 1</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sapien lacus, porttitor vitae pretium eget, sodales sed libero. Maecenas non urna lacus, ac sollicitudin justo. Ut erat mi, hendrerit ac accumsan ac, congue eu dui. Pellentesque consectetur condimentum elit, et eleifend urna porta id. Phasellus blandit ullamcorper dignissim. In rutrum, ante non congue fermentum, metus odio bibendum elit, ut congue sapien arcu ac justo. Vivamus sit amet erat nibh, quis dignissim libero. Pellentesque in sapien felis, et volutpat eros. Maecenas adipiscing, eros sit amet placerat cursus, arcu lacus consectetur lectus, non ultricies neque urna laoreet purus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
  <h2>Tab 2</h2>
  <p>Nulla facilisi. Vestibulum ipsum elit, tincidunt sed tristique sit amet, faucibus in orci. Nunc sit amet elit lorem. Sed eget arcu ipsum, pharetra ullamcorper lectus. Sed ac diam ac tortor mattis mollis. Etiam mattis felis vel augue tempus in rhoncus ligula elementum. Vestibulum ut iaculis risus. Aliquam erat sem, feugiat vel laoreet in, lobortis non mauris. Vestibulum neque nibh, vehicula eleifend tincidunt sed, bibendum id dolor. Pellentesque quis libero nec orci porttitor faucibus vitae in velit. Pellentesque dignissim sem ut justo interdum id egestas tellus fringilla. Vestibulum tempor, turpis eget dignissim luctus, est erat ultricies turpis, non tempus massa elit in nulla. Sed eu arcu vel enim laoreet hendrerit at vel enim. Integer semper malesuada sem quis porttitor.</p>
  <h2>Tab 3</h2>
  <p>Suspendisse potenti. Proin ut erat sit amet turpis egestas tempor. Integer arcu dolor, aliquam ut egestas nec, pharetra ut mauris. Duis urna mi, aliquam id vulputate et, consequat in dolor. Duis congue sem feugiat nulla malesuada scelerisque. Aenean vitae augue nec diam euismod imperdiet. In accumsan consectetur ante a vestibulum. Phasellus eu nulla et lectus tincidunt porttitor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin mauris massa, venenatis ut fringilla interdum, imperdiet et neque. Sed ut risus metus.</p>
</div>
<script type="text/javascript">
// BeginOAWidget_Instance_2138522: #TabbedPanels2
        var TabbedPanels2 = new Spry.Widget.TabbedPanels2("TabbedPanels2", {
            injectionType: "replace",
            widgetID: "TabbedPanels2",
            autoPlay: false,
            defaultTab: params.tab ? params.tab : 0,
            enableKeyboardNavigation: true,
            hideHeader: true,
            tabsPosition: "top",
            event:"click",
            stopOnUserAction: true,
            displayInterval: 5000,
            minDuration: 300,
            maxDuration: 500,
            stoppedMinDuration: 100,
            stoppedMaxDuration: 200,
            plugIns:[]
// EndOAWidget_Instance_2138522
</script>
</body>
</html>

Similar Messages

  • Link to a specific topic in a chm file from Word

    Hi,
    How do I link to a specific topic in a chm file from Word? I can link to the chm but can't work out how to get it to open to a specific page. I have tried #filename and \filename at the end of the path but neither works.
    Thanks for any assistance.
    Emily

    Hi Emily
    Whether it works correctly on your C drive depends on how it arrived there.
    Click here to see what you may need to do
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • After virus problem I downloaded firefox from another browser and opened it to install. Firefox now asks permission to open each time I clik the icon. I then re

    After virus problem which would not let all parts of the browser page open, I downloaded Firefox from another browser and opened it to install.
    Firefox now asks permission to open each time I click the icon. I have shut off the computer and on several times. I then re-installed the browser but still it asks permission to open.
    It seems to work again but can I get rid of opening permission request please? I may have 2 versions of the browser in the computer or the new program did not replace the old?
    If I uninstall the program will I lose my bookmarks? Please can you help?

    Mozilla Firefox stores all your personal settings, such as bookmarks, passwords and extensions, in a profile folder on your computer
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • I migrated a user from another mac and cant get any updates to install!

    Hi
    I migrated a user from another mac and cant get any updates to install, for example it says iPhoto is intalled but its not, i never copied it from the older imac, and i cant download it to this one now
    any help appreciated

    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    If the problem is still there, try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About

  • In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.

  • How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?

    How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
    I currently run OS X 10.10.1
    Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
    Here is an example of what i want to happen.
    I will have 2 tabs: Contact | Sales
    Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
    for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
    Now how do i do this, Excel can do this so how can numbers do it?

    Hi Shegra,
    Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
    quinn
    Script starts:
    -- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
    property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
    property DataEntryTable : "Sales" --name of table with popups to be refreshed
    set copyRange to {}
    property PopValueSheet : "Sheet 1" --name of sheet with popup values table
    property PopValueTable : "Contacts" --name of table with popup values
    set PopStartRow to {}
    tell application "Numbers"
      set d to front document
      set ps to d's sheet PopValueSheet
      set pt to ps's table PopValueTable
      set s to d's sheet DataEntrySheet
      set t to s's table DataEntryTable
      set tf to t's filtered --this records filter setting on data Entry Table
      display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
      set PopStartRow to {text returned of result}
      tell pt --convert list to alphabetized popups
      set ptRows to count rows
      set copyRange to ("A2:" & name of cell ptRows of column "A")
      set selection range to range copyRange
      set selection range's format to text
      sort by column 1 direction ascending
      set selection range's format to pop up menu
      -- popupsmade
      set selection range to cell ptRows of column 1 of pt
      set v to value of cell ptRows of pt
      end tell
      activate application "Numbers"
      tell application "System Events" to keystroke "c" using command down
      tell pt
      set selection range to range copyRange
      set selection range's format to text
      end tell
      tell t
      set filtered to false
      set tRows to count rows
      set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
      set selection range to range pasteRange
      tell application "System Events" to keystroke "v" using command down
      set filtered to tf
      end tell
    end tell

  • My 3GS will not charge. I have tried it from my computer and from a wall socket. I also have tried another computer and a different cable with no luck. My computer doesnt see the device either. I havent had any issues until now. Any ideas?

    My 3GS will not charge. I have tried it from my computer and from a wall socket. I also have tried another computer and a different cable with no luck. My computer doesnt see the device either. I havent had any issues until now. Any ideas?

    bring it to Apple for battery diagnostics.

  • My ipod has been accessed from another ipod and now it won't let me download anything what do i do

    my ipod account has been accessed from another ipod and now it won't let me download anything...What Do I do?

    Not sure what you are talking about.
    Your ITUNES account can be accessed from any device or computer that has itunes, as long as you have your username and password.  Using your itunes account from another device does not affect your ability to use the account from your device.
    What is the issue?
    You tried to do what?
    And what was the result?
    Error message?
    What did it say?
    What have you tried?

  • Each time I create a new album in IPhoto, photos from another album or from photo stream are automatically dumped into the new album..  how do I create a blank album and then import photos from a flash drive into the new album?

    each time I create a new album in IPhoto, photos from another album or from photo stream are automatically dumped into the new album..  how do I create a blank album and then import photos from a flash drive into the new album?

    just import the iPhoto
    Surely you meant "just import the photo"?  The Spell checker is dangerously creative !

  • HT5699 Im from another country and ive lost the answers to my security questions. Help required

    Hi
    Im from another country and ive lost the answers to my security questions. Help required
    Thanks

    You need to contact Apple, either as described in that article or by filling out and submitting this form.
    (90034)

  • I can't open my iPhoto because i have to update it and i can't update it because i've downloaded from another account and it has all my pictures, how can i solve it ??

    i can't open my iPhoto because i have to update it and i can't update it, because i've downloaded it from another account and it has all my pictures, how can i solve it ??

    Log in from the other account.

  • I had to redownload cs6 from another drive and all the files are there but it wont open any of it

    i had to redownload cs6 from another drive and all the files are there but it wont open any of it

    Copying/transferring will not work.  You need to install the software using installation files.
    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

  • CS5 - Help copy from another application and paste into CS5

    I am not able to copy an image from another application and paste into my CS5 image.
    I can paste the image into any other program except for CS5.
    Does anyone know how this issue can be fixed?  Very frustrating, since it is such a simple process.
    Thanks!

    You probably have at least one plug-in made by Nik Software.  They're known to interfere with Photoshop's ability to access the clipboard.
    I believe there's a Nik configuration file change needed, or possibly a removal of all or part of the plug-in to restore Photoshop's access to the clipboard.  There's another thread on this forum that's gotten quite long on the subject, and in it are some possible resolutions...  Ah, here it is:  http://forums.adobe.com/thread/680075
    -Noel

  • Re:iMac remotely accessed from another computer and location?

    Can you access an iMac remotely from another computer and location if there is knowone to switch it on?

    Barbara,
    Both are legitimate concerns, I'll address each as best I can.
    As for the the power issue, well that's going to be the case with any computer. We have many choices, most of them impractical for example take your house off the grid, put in your own power source (solar or wind powered) which clearly for most of us is totally impractical. The next thing would be a backup-generator like a hospital or other mission critical facilities (police & fire houses) have. While this is more practical again it's stretching the limits again for most of us. So the next thing is a healthy battery back up system that can maintain power to a computer for several hours if necessary. While they are still expensive they are far less expensive than the first two solutions. Of course you can set the energy saver settings to power on your computer after the power comes back on if even the UPS battery goes dead. I haven't tried this remotely however I think it might work.
    Next is security, DropBox and Logmein both address this themselves so I would recommend looking into their solutions. Personally I find them trust worthy and don't have an issue. Even if you use MobileMe you would still have the same concerns, and how about Google, and all the other major players. To me Google while it's a vast resource and extremely helpful if for some reason they decided to become the Evil Empire they have far more access to your information that anything. Anytime you do a simple search they are collecting information about you. For example let's say you are looking for ATM's in a new city, they can capture your search and if they were evil enough they could track your every step. Is this far fetched and ridiculous, of course it is but it is possible. However this is the case with any Internet based computing, if you use some basic common sense for the most part your data is pretty secure. I'm much more nervous about the minimum wage clerk at Taco Bell taking my credit card information than Google, Apple, Logmein or Dropbox doing so.

  • Am trying to redeem an itunes gift card but its telling me that the ipod is from another state and that i can't redeem the card????

    am trying to redeem an itunes gift card but its telling me that the ipod is from another state and that i can't redeem the card????

    The iPod is from another state? Can you give us anymore details?
    Be sure you are using the correct code >  iTunes Store: Invalid, inactive, or illegible codes

Maybe you are looking for

  • Function modules to create leave request?

    Hi experts, In my project I need to create a leave request and trigger workflow for approval. Do you know any function modules existed for this purpose? Or shall we need to create workflow and attach it with inserting IT2001 records? Thanks a lot.

  • Illustrator CS2 Doesn't Start For User on Windows 2000

    I've recently installed Adobe Illustrator CS2 on a Windows 2000 system. When I start the product when logged in as the Administrator, it starts fine. However, when I start the product logged in as a user, it goes thru the startup process, displays al

  • Process chain failing with error 8 in BI 7.0

    Hi , we have upgrade the dev to BI 7.0 and I am trying to execute the process chains but it is failing with a error 8 due to the step of the job BI_PROCESS is in the name of a old user. So i have changed in process chain -Attrbutes--Execution user --

  • Nano 4th Generation Bricked iTunes 11.1.4.62

    iPod Nano 4th Generation Windows 7 SP1 iTunes 11.1.4.62 Battery 100% Was in the middle of restoring Nano when iTunes 11.1.4 spit out an error and stopped restoring.  Unable to hardreset using click wheel.  Uninstalled iTunes and associated software,

  • Why can't my pics match color of the screen when printed?

    Hi there.... Please help me with my frustation.  I am using LR 2.6 and printing on a HP Photosmart B8550 on a MacBook laptop.   I can't get the colors on the printer to match the screen.  I have tried several profiles in the Color Management section