Tabbed panels, load on click

hello!
i have a site with tabbed panels which include a bunch of
accordions i wanted to know if i could change the js code so the
tabbed panels contents would only load on click of the panel,
studioormus.com
i have seen that there is a way to do this for dynamic
content which was a bit unclear to me.
thank you !

near line 282 u will see the function:
Spry.Widget.TabbedPanels.prototype.addPanelEventListeners =
function(tab, panel)
in there u will find
Spry.Widget.TabbedPanels.addEventListener(tab, "click",
function(e) { return self.onTabClick(e, tab); }, false);
Spry.Widget.TabbedPanels.addEventListener(tab, "mouseover",
function(e) { return self.onTabMouseOver(e, tab); }, false);
change this to:
Spry.Widget.TabbedPanels.addEventListener(tab, "mouseover",
function(e) { self.onTabClick(e, tab);return self.onTabMouseOver(e,
tab); }, false);
and it should work.

Similar Messages

  • Tabbed Panels: load tab content Ajax style

    What changes need to be made to load the content of each
    panel only when the corresponding tab has been clicked? I want each
    panel to contain several images, but don't want to load all of the
    images when the page loads.

    http://labs.adobe.com/technologies/spry/samples/utils/updateContent_TabbedPanels.html
    view the source to get the code ;)

  • Looking to add animation to the spry tabbed panels

    SO I was wondering if there's any way to add a fade in/out to
    the content panel on the spry tabbed panels, whenever you click a
    new tab, have that content fade in or do some other kind of effect
    that adobe supports through the spry framework.
    I've already looked at the adobe labs documentation, and I
    can only find effect modifications for the accordion panels.
    Any help would be great!
    Matt

    I have a simple solution posted on my blog:
    http://blog.infrontweb.com/spry/spry-tabbed-panel-fade-transition/
    Hope this helps.

  • Spry Tabbed panels + Progressive Enhancement and Dynamic Loading of Content With Spry

    Is there any way to combine tabbed panels together with "Progressive Enhancement and Dynamic Loading of Content With Spry"?
    Visit: http://labs.adobe.com/technologies/spry/articles/best_practices/progressive_enhancement.ht ml#updatecontent
    And click on the "Using Spry.Utils.updateContent()"
    The 3rd example shows how to use a fade transition whenever the content changes.
    I already have tabbed panels. My menu contains buttons (on tabs) and my Content div contains the panels.
    Tabs code;
    <ul class="TabbedPanelsTabGroup">
              <li class="TabbedPanelsTab">
                   <table class="Button"  >
                        <tr>
                        <td style="padding-right:0px" title ="Home">
                        <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
                        </td>
                        </tr>
                   </table>
              </li>
    etc
    etc
    etc
    and the panel code:
    <div class="TabbedPanelsContent" id="Home">
         CONTENT
    </div>
    I hoped i can use the example code from the link into my tabbed panels.
    I thought this code:
    onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;"
    could be added to the tab code like this:
    <a href="javascript:TabbedPanels1.showPanel(1);" onclick="FadeAndUpdateContent('event', 'data/AquoThonFrag.html'); return false;" title="Home" style="background-image:url(/Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a>
    But the content doesnt fade...
    I know i need to change the header etc.
    The following is from the link:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Aquo Events</title>
    <script src="../../../includes/SpryEffects.js" type="text/javascript"></script>
    <script src="../../../includes/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function FadeAndUpdateContent(ele, url)
    try {
         Spry.Effect.DoFade(ele,{ duration: 500, from: 100, to: 0, finish: function() {
              Spry.Utils.updateContent(ele, url, function() {
                        Spry.Effect.DoFade(ele,{ duration: 500, from: 0, to: 100 });
    }catch(e){ alert(e); }
    -->
    </script>
    <style type="text/css">
    /* IE HACK to prevent bad rendering when fading. */
    #event { background-color: white; }
    </style>
    </head>
    So i changed my header etc, put the SpryEffects.js and SpryData.js into position and nothing changed...
    Is there a way to keep my tabbed panel (or change as less as possible) and let
    A. The fade work
    B. The loading work.
    The problem now is that it loads all pages instead of only the home. Therefore i wanted this Progressive Enhancement.
    And the fading part is just because its nice...

    It doesnt show in the post but off course i changed this link;
    "data/AquoThonFrag.html"
    into;
    "javascript:TabbedPanels1.showPanel(1);"
    I must say i dont know if this even works...

  • Load HTML into a Tabbed Panel?

    Can I load another URL Into a tabbed panel's main div? In
    other words, I click on a tab and then the Tabbed Panels' Content
    area loads up an HTML page into it's div. I know of similar
    frameworks that can do it but I haven't seen it done in Spry
    yet.

    Hi Data,
    Check out UpdateContent and see if that will do what you
    need:
    http://labs.adobe.com/technologies/spry/samples/utils/update_content.html
    Thanks,
    Don

  • Why is my tabbed panel defaulting to the third tab, instead of the first one, when my page loads?

    I have a tabbed panel widget on the home page of our website and it is essential that the audience views the content on the first tab when the page loads.
    Thereafter they can click on the other tabs to view content. I have tried using "Arrange" "Bring to Front" by clicking on the object in the layout and also physically dragging the elements in the layers panel [i.e. re-arranging the order of the layers], however the panel view just keeps reverting back to the third panel which is the first in my layers list. When I try to drag this down to the bottom of my layers for this composition the first panel moves physically in the layout to the third panel.
    The idea is to have the one currently showing at the bottom, "Data Centre..", ALWAYS showing on the top and the one currently showing on the top, "Engineering &.." , ALWAYS showing on the bottom. As I said before, physically re-arranging the order of the layers is not working either.

    Me too. Anyone else got this problem?
    I have 3 panels and no matter how i order the layers it always loads the right-most one first

  • Spry - load tab content only when clicked / selected

    I'm considering spry to create a multi-tab page layout.. tabs
    such as 'account', 'balance', 'bin', 'history', etc.
    Each tab's content is dynamic and based on moderately
    demanding DB calls. Is there a way to set Spry such that
    - only the default selected tab's content (on page load) is
    'filled', while the content of other tabs is generated only upon
    user's click?
    - once a tab's content is loaded, not regenerate its dynamic
    content? I think I have an idea how to do this, but doesn't hurt to
    ask.
    thanks.

    quote:
    Originally posted by:
    shanbyrt
    Brandan98,
    I have a little script that sets the default panel whenever I
    click on a tab.
    I know it sounds redundant, but if/when the page reloads
    onclick it reloads the default tab's contents. Just so you know I'm
    not talking about persistent state stuff that V1 addressed in other
    posts. :)
    here's the script that I have that sets default tabs
    <script type="text/javascript">
    function setPanel(pan){
    if (pan == 1){
    var tp2 = new Spry.Widget.TabbedPanels("tp2", {defaultTab:
    0});
    if (pan == 2){
    var tp2 = new Spry.Widget.TabbedPanels("tp2",{defaultTab:
    1}); }
    var tp2 = new Spry.Widget.TabbedPanels("tp2");
    </script>
    It seems to work for me, but may not be the best approach.
    Byron
    Hi Byron,
    If i understand you right, this script sets the current tab
    as default so if the page refreshes it reloads the current tab not
    the first tab? If so this is exactly what i'm after! I'm not hot on
    javascript so could you possibly expand a little on how i would
    implement this in a php page??
    Thanks, Mike :)

  • Spry Tabbed Panels IE7 on load problem

    Im having a problem with my new site. I used the spry
    framework tabbed panels to make interactive navigation that loads
    all my sites content in the panel similar to how old iframes used
    to work. obviously the plus to this is i get to keep all my content
    searchable on one page.
    the problem im having is on my version of IE7 the very first
    time i go the the site it loads every div section at once. so you
    have every image and all the text in one window. then i get the
    allow blocked content notice up at the top. after about 2 clicks it
    goes back to normal and never appears again until i restart.
    i checked on my partners comp and it didnt do this. im pretty
    sure its an issue with my specific computer but i was hoping
    somebody else knew what was going on so i can be sure its not a
    problem with my code. i wouldnt be very pleased if half my audience
    was having to click these options to fix the problem. let me know.
    thank you!
    EDIT: Nov 2 2007
    i have decided to go with a new look for this site so i have
    removed the url bc google indexed it and the offical product will
    launch soon.
    thanks for reading.
    www.xancap.com

    Hi Ben,
    Ah, now that has helped, its a little bit better, but the performance in IE8 is very poor. Its not worth having the fade in IE8, its way too slow and jerky. I am tempted to go back to the old tabbed panels, see if its any better.
    Thanks for your help, you seem to be the new resident expert!
    Steve

  • I can't get Firefox to open a new tab each time I click on a link or favorite. It keeps loading onto the current tab.

    I went to Tools>Options>Tabs and entered a check mark next to the first entry, "Open New Windows in a New Tab Instead" but it still does not open a new tab each time I click on a link or one of my favorites. It used to way back in earlier versions of Firefox but hasn't for the past few iterations...am I doing something wrong or do I need to activate something else within Firefox?

    '''''"I went to Tools>Options>Tabs and entered a check mark next to the first entry, "Open New Windows in a New Tab Instead" but it still does not open a new tab each time I click on a link or one of my favorites."'''''
    That option only controls pages that would open in a new window based on the code on the website page you are visiting.
    Firefox's default is to open a link or a Bookmark in the currently selected tab.
    You have some options to have links and/or Bookmarks open in a new tab:
    *middle-click the link or Bookmark (middle-click = press the mouse scroll wheel)
    *CTRL+left-click the link or Bookmark
    *right-click the link or Bookmark and choose "Open in New Tab"
    *install one of the following and set the options to automatically open links or Bookmarks in a new tab:
    **'''''Tab Utilities Lite''''': https://addons.mozilla.org/en-US/firefox/addon/tab-utilities-lite/
    **'''''Tab Utilities''''' (a few more options than the "Lite" version): https://addons.mozilla.org/en-US/firefox/addon/tab-utilities/
    **'''''Tab Mix Plus''''' (a heavyweight tab utility extension): https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape 10.0.1
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • When I click a link in a website, it loads in another tab, however i get 100's of new tabs that load with "untitled" and when i close firefox, it just opens by itself again and again

    I was on my son's school website and I was looking to click the link to his teachers personal web-page. When I did, many, many "untitled" new tabs kept opening in the same screen. In fact it did not stop until I restarted my computer.
    When I tried to close mozilla firefox page, it would then open up a new screen again doing the many, many "untitled" tabs. Every time I clicked the red X at the top of the screen, it would load a new page doing this.
    It also did this on one other web page.
    I am sure that there is just some info that needs to be entered for what to do when you click a link, however I have no clue how to change it.

    For the list of teachers there are email addresses in the right hand column, did you click on an email address?
    If you did that could explain the multiple tabs being opened. What may have happened is you have the mailto protocol set to open Firefox which results in 100s of tabs opening when you click on an email address. For details on fixing that see [[Firefox keeps opening many tabs or windows]], in particular the section on "Change the action for a content type". My guess is you will find mailto is set to "Use Firefox".

  • Spry Tabbed Panels- Open link on click

    I am completely new to Dreamweaver and web design in general so please bear with me. I have created a tab menu using Spry Tabbed Panels but dont know how to make it so once a tab has been clicked an html file (ex. tab1.html which is saved on my computer) opens in the content portion, not open a new window.Can anyone post a tutorial or if its simple enough, post some directions?
    Any help would be appreciated!

    Spry Tabbed Panels are not a "menu" per se, but a series of panels, all but one of which remain hidden until their tab is clicked. Tabbed Panels is a Spry "disclosure" widget. All the content may actually exist on the same page as the Tabbed Panels widget, or you can use <iframe></iframe> to 'surface' other pages in your Tabbed Panel Content divs.
    As it sounds as if you want to use the <iframe> approach, here's how:
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">First Panel</li>
        <li class="TabbedPanelsTab" tabindex="0">Second Panel</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">This is the content of the first panel <br /><iframe src="heirloom.html" width="100%" height="800" frameborder="0"></iframe></div>
        <div class="TabbedPanelsContent">This is the content of the second panel <br /><iframe src="data.html" width="100%" height="500"></iframe></div>
      </div>
    </div>
    You can also omit the frameborder="0" if you want to keep the default look of an iframe. Remember to give both a height and a width to your iframes. Test them in several different browsers (or BrowserLab) to make sure they look the way you want.
    Beth

  • Close panel by clicking tab panel?

    Is there a way to make a panel close by clicking on the open
    panel's tab instead of clicking on another panel's tab?

    Hi,
    I saw you are using Spry 1.4. The reason is not working for
    you is that in Spry 1.4 we had a bug when using variable panel
    heights and default panel :)
    This bug is fixed on Spry 1.5. To get the new accordion
    files, please download the Spry.15 package from labs site and
    replace the css and js files for your site. It should work.
    Diana

  • Tabbed Panels Show on Hover, Not Click

    Hi,
    I'm using the Spry Tabbed Panels widget (obviously). I'd like
    the content panels to show on hover, rather than on click.
    Reason being is my content in the content panels are images
    -- as you hover over a tab, the image changes. Clicking on the tab
    takes you to the tab's page. That's the end goal, at least.
    The answer's in the SpryTabbedPanels.js file, I'm positive.
    All my tinkering hasn't produced the desired result, though. Spare
    a few minutes and direct me to the sections of the javascript file
    I need to change?
    var Spry;
    if (!Spry) Spry = {};
    if (!Spry.Widget) Spry.Widget = {};
    Spry.Widget.TabbedPanels = function(element, opts)
    this.element = this.getElement(element);
    this.defaultTab = 0; // Show the first panel by default.
    this.bindings = [];
    this.tabSelectedClass = "TabbedPanelsTabSelected";
    this.tabHoverClass = "TabbedPanelsTabHover";
    this.tabFocusedClass = "TabbedPanelsTabFocused";
    this.panelVisibleClass = "TabbedPanelsContentVisible";
    this.focusElement = null;
    this.hasFocus = false;
    this.currentTabIndex = 0;
    this.enableKeyboardNavigation = true;
    Spry.Widget.TabbedPanels.setOptions(this, opts);
    // If the defaultTab is expressed as a number/index, convert
    // it to an element.
    if (typeof (this.defaultTab) == "number")
    if (this.defaultTab < 0)
    this.defaultTab = 0;
    else
    var count = this.getTabbedPanelCount();
    if (this.defaultTab >= count)
    this.defaultTab = (count > 1) ? (count - 1) : 0;
    this.defaultTab = this.getTabs()[this.defaultTab];
    // The defaultTab property is supposed to be the tab element
    for the tab content
    // to show by default. The caller is allowed to pass in the
    element itself or the
    // element's id, so we need to convert the current value to
    an element if necessary.
    if (this.defaultTab)
    this.defaultTab = this.getElement(this.defaultTab);
    this.attachBehaviors();
    Spry.Widget.TabbedPanels.prototype.getElement = function(ele)
    if (ele && typeof ele == "string")
    return document.getElementById(ele);
    return ele;
    Spry.Widget.TabbedPanels.prototype.getElementChildren =
    function(element)
    var children = [];
    var child = element.firstChild;
    while (child)
    if (child.nodeType == 1 /* Node.ELEMENT_NODE */)
    children.push(child);
    child = child.nextSibling;
    return children;
    Spry.Widget.TabbedPanels.prototype.addClassName =
    function(ele, className)
    if (!ele || !className || (ele.className &&
    ele.className.search(new RegExp("\\b" + className + "\\b")) != -1))
    return;
    ele.className += (ele.className ? " " : "") + className;
    Spry.Widget.TabbedPanels.prototype.removeClassName =
    function(ele, className)
    if (!ele || !className || (ele.className &&
    ele.className.search(new RegExp("\\b" + className + "\\b")) == -1))
    return;
    ele.className = ele.className.replace(new RegExp("\\s*\\b" +
    className + "\\b", "g"), "");
    Spry.Widget.TabbedPanels.setOptions = function(obj,
    optionsObj, ignoreUndefinedProps)
    if (!optionsObj)
    return;
    for (var optionName in optionsObj)
    if (ignoreUndefinedProps && optionsObj[optionName]
    == undefined)
    continue;
    obj[optionName] = optionsObj[optionName];
    Spry.Widget.TabbedPanels.prototype.getTabGroup = function()
    if (this.element)
    var children = this.getElementChildren(this.element);
    if (children.length)
    return children[0];
    return null;
    Spry.Widget.TabbedPanels.prototype.getTabs = function()
    var tabs = [];
    var tg = this.getTabGroup();
    if (tg)
    tabs = this.getElementChildren(tg);
    return tabs;
    Spry.Widget.TabbedPanels.prototype.getContentPanelGroup =
    function()
    if (this.element)
    var children = this.getElementChildren(this.element);
    if (children.length > 1)
    return children[1];
    return null;
    Spry.Widget.TabbedPanels.prototype.getContentPanels =
    function()
    var panels = [];
    var pg = this.getContentPanelGroup();
    if (pg)
    panels = this.getElementChildren(pg);
    return panels;
    Spry.Widget.TabbedPanels.prototype.getIndex = function(ele,
    arr)
    ele = this.getElement(ele);
    if (ele && arr && arr.length)
    for (var i = 0; i < arr.length; i++)
    if (ele == arr
    return i;
    return -1;
    Spry.Widget.TabbedPanels.prototype.getTabIndex =
    function(ele)
    var i = this.getIndex(ele, this.getTabs());
    if (i < 0)
    i = this.getIndex(ele, this.getContentPanels());
    return i;
    Spry.Widget.TabbedPanels.prototype.getCurrentTabIndex =
    function()
    return this.currentTabIndex;
    Spry.Widget.TabbedPanels.prototype.getTabbedPanelCount =
    function(ele)
    return Math.min(this.getTabs().length,
    this.getContentPanels().length);
    Spry.Widget.TabbedPanels.addEventListener = function(element,
    eventType, handler, capture)
    try
    if (element.addEventListener)
    element.addEventListener(eventType, handler, capture);
    else if (element.attachEvent)
    element.attachEvent("on" + eventType, handler);
    catch (e) {}
    Spry.Widget.TabbedPanels.prototype.onTabClick = function(e,
    tab)
    this.showPanel(tab);
    Spry.Widget.TabbedPanels.prototype.onTabMouseOver =
    function(e, tab)
    this.addClassName(tab, this.tabHoverClass);
    Spry.Widget.TabbedPanels.prototype.onTabMouseOut =
    function(e, tab)
    this.removeClassName(tab, this.tabHoverClass);
    Spry.Widget.TabbedPanels.prototype.onTabFocus = function(e,
    tab)
    this.hasFocus = true;
    this.addClassName(this.element, this.tabFocusedClass);
    Spry.Widget.TabbedPanels.prototype.onTabBlur = function(e,
    tab)
    this.hasFocus = false;
    this.removeClassName(this.element, this.tabFocusedClass);
    Spry.Widget.TabbedPanels.ENTER_KEY = 13;
    Spry.Widget.TabbedPanels.SPACE_KEY = 32;
    Spry.Widget.TabbedPanels.prototype.onTabKeyDown = function(e,
    tab)
    var key = e.keyCode;
    if (!this.hasFocus || (key !=
    Spry.Widget.TabbedPanels.ENTER_KEY && key !=
    Spry.Widget.TabbedPanels.SPACE_KEY))
    return true;
    this.showPanel(tab);
    if (e.stopPropagation)
    e.stopPropagation();
    if (e.preventDefault)
    e.preventDefault();
    return false;
    Spry.Widget.TabbedPanels.prototype.preorderTraversal =
    function(root, func)
    var stopTraversal = false;
    if (root)
    stopTraversal = func(root);
    if (root.hasChildNodes())
    var child = root.firstChild;
    while (!stopTraversal && child)
    stopTraversal = this.preorderTraversal(child, func);
    try { child = child.nextSibling; } catch (e) { child = null;
    return stopTraversal;
    Spry.Widget.TabbedPanels.prototype.addPanelEventListeners =
    function(tab, panel)
    var self = this;
    Spry.Widget.TabbedPanels.addEventListener(tab, "click",
    function(e) { return self.onTabClick(e, tab); }, false);
    Spry.Widget.TabbedPanels.addEventListener(tab, "mouseover",
    function(e) { return self.onTabMouseOver(e, tab); }, false);
    Spry.Widget.TabbedPanels.addEventListener(tab, "mouseout",
    function(e) { return self.onTabMouseOut(e, tab); }, false);
    if (this.enableKeyboardNavigation)
    // XXX: IE doesn't allow the setting of tabindex
    dynamically. This means we can't
    // rely on adding the tabindex attribute if it is missing to
    enable keyboard navigation
    // by default.
    // Find the first element within the tab container that has
    a tabindex or the first
    // anchor tag.
    var tabIndexEle = null;
    var tabAnchorEle = null;
    this.preorderTraversal(tab, function(node) {
    if (node.nodeType == 1 /* NODE.ELEMENT_NODE */)
    var tabIndexAttr = tab.attributes.getNamedItem("tabindex");
    if (tabIndexAttr)
    tabIndexEle = node;
    return true;
    if (!tabAnchorEle && node.nodeName.toLowerCase() ==
    "a")
    tabAnchorEle = node;
    return false;
    if (tabIndexEle)
    this.focusElement = tabIndexEle;
    else if (tabAnchorEle)
    this.focusElement = tabAnchorEle;
    if (this.focusElement)
    Spry.Widget.TabbedPanels.addEventListener(this.focusElement,
    "focus", function(e) { return self.onTabFocus(e, tab); }, false);
    Spry.Widget.TabbedPanels.addEventListener(this.focusElement,
    "blur", function(e) { return self.onTabBlur(e, tab); }, false);
    Spry.Widget.TabbedPanels.addEventListener(this.focusElement,
    "keydown", function(e) { return self.onTabKeyDown(e, tab); },
    false);
    Spry.Widget.TabbedPanels.prototype.showPanel =
    function(elementOrIndex)
    var tpIndex = -1;
    if (typeof elementOrIndex == "number")
    tpIndex = elementOrIndex;
    else // Must be the element for the tab or content panel.
    tpIndex = this.getTabIndex(elementOrIndex);
    if (!tpIndex < 0 || tpIndex >=
    this.getTabbedPanelCount())
    return;
    var tabs = this.getTabs();
    var panels = this.getContentPanels();
    var numTabbedPanels = Math.max(tabs.length, panels.length);
    for (var i = 0; i < numTabbedPanels; i++)
    if (i != tpIndex)
    if (tabs)
    this.removeClassName(tabs
    , this.tabSelectedClass);
    if (panels)
    this.removeClassName(panels
    , this.panelVisibleClass);
    panels.style.display = "none";
    this.addClassName(tabs[tpIndex], this.tabSelectedClass);
    this.addClassName(panels[tpIndex], this.panelVisibleClass);
    panels[tpIndex].style.display = "block";
    this.currentTabIndex = tpIndex;
    Spry.Widget.TabbedPanels.prototype.attachBehaviors =
    function(element)
    var tabs = this.getTabs();
    var panels = this.getContentPanels();
    var panelCount = this.getTabbedPanelCount();
    for (var i = 0; i < panelCount; i++)
    this.addPanelEventListeners(tabs
    , panels);
    this.showPanel(this.defaultTab);

    near line 282 u will see the function:
    Spry.Widget.TabbedPanels.prototype.addPanelEventListeners =
    function(tab, panel)
    in there u will find
    Spry.Widget.TabbedPanels.addEventListener(tab, "click",
    function(e) { return self.onTabClick(e, tab); }, false);
    Spry.Widget.TabbedPanels.addEventListener(tab, "mouseover",
    function(e) { return self.onTabMouseOver(e, tab); }, false);
    change this to:
    Spry.Widget.TabbedPanels.addEventListener(tab, "mouseover",
    function(e) { self.onTabClick(e, tab);return self.onTabMouseOver(e,
    tab); }, false);
    and it should work.

  • Embedded iFrame in Tabbed Panel loses ability to scroll when clicking between tabs.

    I've created an iFrame within a Tabbed Panel to display content that scrolls independently. This works properly when the page is first loaded but if I switch between tabs and return to the original tab, the content is fixed within the frame. Zooming the browser window or reloading the page restores the scrolling ability. Example is below.
    http://cmtesting.businesscatalyst.com

    Update. This seems to be an issue with Safari. I tested it on a Windows 7 box with Chrome and it works perfectly.

  • Switching tabbed panels on the button click

    I have a form where I am using spry tabbed panels. What I am
    trying to do is to switch to the panel 2 after I click on the next
    button of the panel 1

    The redirection works fine when I define the button as
    type=button" but what if I need the submit type. What I trying to
    od is to select value from the drop dowen and set the session
    variable and then redirect to a different tab so I can use that
    session variable

Maybe you are looking for

  • How do I move files on my new iMac?

    I am a longtime PC user with my first iMac and I cannot figure out how to move files from one location to another.

  • Iphone won't sync!

    My Iphone will not sync with my laptop! It says that I must download the 64 bit version of Itunes! I've already done this 3 times and it still gives the same message! What can I do?

  • A bug in UML documentation in SJSE 8.1

    Hi! Is There a bug in UML documentation in SJSE 8.1? When I write some text in editor, it insert ENTER and Blanck lines in my text. What is hapend? What am I doing? Thanks!

  • Which execution is more performance effective in SQL Query

    Hi Any one help me regarding oracle performance, which is best for application performance 1) I have multiple option and store in application and the option value or text store in transaction table, and we are querying information filter by option fi

  • Setting default printer with printers deployed via print management

    Would like to set default printer on a windows 7 workstation to a printer deployed through group policy using print management.  However whenever machine reboots the defualt changes to a local printer XPS or something else. HOw can I set the default