Collapsible panel problem in IE

Hi ,
I have a collapsible panel in a site I'm working on.the collapsible panel on display is closed. whe  I open the page in IE8 it looks fine but once I click on the panel to open the content is show as it should and after a sec it drops down to the bottom of the web page.
is this a problem with the way I implimented the spry collapsible panel or with IE8? on FF, Opera and Safari it opens just fine.

Source Code:
<div class="IntBodyDiv1">
    <img src="../IMG/vertical-line.png" width="1" height="407" align="right" />
    <div id="Applications" class="CollapsiblePanel">
      <div class="CollapsiblePanelTab" tabindex="0">
<table width="200" border="0" cellspacing="5" cellpadding="1">
  <tr>
    <td>Applications</td>
  </tr>
  <tr>
    <td><img src="../IMG/line.png" width="169" height="1" /></td>
  </tr>
</table>
      </div>
      <div class="CollapsiblePanelContent">
        <table width="201" border="0" cellspacing="5" cellpadding="1">
          <tr>
            <td><span class="SideMenuH2"><a href="#">Private Pools</a></span></td>
          </tr>
          <tr>
            <td><span class="SideMenuH2"><a href="#">Public Pools</a></span></td>
          </tr>
          <tr>
            <td><span class="SideMenuH2"><a href="#">Spas</a></span></td>
          </tr>
          <tr>
            <td><span class="SideMenuH2"><a href="#">Rehabilitation & Thermal pools
            </a></span></td>
          </tr>
        </table>
      </div>
    </div>
    <div id="Productss" class="CollapsiblePanel">
      <div class="CollapsiblePanelTab" id="Products" tabindex="0">
<table width="200" border="0" cellspacing="5" cellpadding="1">
  <tr>
    <td>Products</td>
  </tr>
  <tr>
    <td><img src="../IMG/line.png" width="169" height="1" /></td>
  </tr>
</table>
      </div>
      <div class="CollapsiblePanelContent">
        <table width="201" border="0" cellpadding="1" cellspacing="5" class="SideMenuH2">
          <tr>
            <td><a href="#">Prizma</a></td>
          </tr>
          <tr>
            <td><a href="#">HG 302</a></td>
          </tr>
          <tr>
            <td><a href="#">HG 202</a></td>
          </tr>
          <tr>
            <td><a href="#">HG 102</a></td>
          </tr>
          <tr>
            <td><a href="#">HG CYA</a></td>
          </tr>
        </table>
      </div>
    </div>
    <p><br />
  </p>
  </div>
  <div class="IntBodyDiv2">
sprycollapsiblepanel.css:
@charset "UTF-8";
/* SpryCollapsiblePanel.css - version 0.5 - Spry Pre-Release 1.6.1 */
/* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
/* This is the selector for the main CollapsiblePanel container. For our
* default style, the CollapsiblePanel is responsible for drawing the borders
* around the widget.
* If you want to constrain the width of the CollapsiblePanel widget, set a width on
* the CollapsiblePanel container. By default, our CollapsiblePanel expands horizontally to fill
* up available space.
* The name of the class ("CollapsiblePanel") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style the
* CollapsiblePanel container.
.CollapsiblePanel {
margin: 0px;
padding: 0px;
width: 196px;
/* This is the selector for the CollapsiblePanelTab. This container houses
* the title for the panel. This is also the container that the user clicks
* on to open or close the panel.
* The name of the class ("CollapsiblePanelTab") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style an
* CollapsiblePanel panel tab container.
.CollapsiblePanelTab {
margin: 0px;
padding: 2px;
cursor: pointer;
-khtml-user-select: none;
font-family: Verdana, Geneva, sans-serif;
font-size: 15px;
font-weight: bold;
color: #00aeef;
outline: none;
/* This is the selector for a CollapsiblePanel's Content area. It's important to note that
* you should never put any padding on the content area element if you plan to
* use the CollapsiblePanel's open/close animations. Placing a non-zero padding on the content
* element can cause the CollapsiblePanel to abruptly grow in height while the panels animate.
* The name of the class ("CollapsiblePanelContent") used in this selector is not necessary
* to make the widget function. You can use any class name you want to style a
* CollapsiblePanel content container.
.CollapsiblePanelContent {
margin: 0px;
padding: 0px;
/* An anchor tag can be used inside of a CollapsiblePanelTab so that the
* keyboard focus ring appears *inside* the tab instead of around the tab.
* This is an example of how to make the text within the anchor tag look
* like non-anchor (normal) text.
.CollapsiblePanelTab a {
color: black;
text-decoration: none;
margin: 0px;
padding: 0px;
outline: none;
/* This is an example of how to change the appearance of the panel tab that is
* currently open. The class "CollapsiblePanelOpen" is programatically added and removed
* from panels as the user clicks on the tabs within the CollapsiblePanel.
.CollapsiblePanelOpen .CollapsiblePanelTab {
/* This is an example of how to change the appearance of the panel tab when the
* CollapsiblePanel is closed. The "CollapsiblePanelClosed" class is programatically added and removed
* whenever the CollapsiblePanel is closed.
.CollapsiblePanelClosed .CollapsiblePanelTab {
margin: 0px;
padding: 0px;
/* background-color: #EFEFEF */
/* This is an example of how to change the appearance of the panel tab as the
* mouse hovers over it. The class "CollapsiblePanelTabHover" is programatically added
* and removed from panel tab containers as the mouse enters and exits the tab container.
.CollapsiblePanelTabHover,  .CollapsiblePanelOpen .CollapsiblePanelTabHover {
margin: 0px;
padding: 0px;
/* This is an example of how to change the appearance of all the panel tabs when the
* CollapsiblePanel has focus. The "CollapsiblePanelFocused" class is programatically added and removed
* whenever the CollapsiblePanel gains or loses keyboard focus.
.CollapsiblePanelFocused .CollapsiblePanelTab {
margin: 0px;
padding: 0px;

Similar Messages

  • Spry Collapsible Panel problem

    Hi there,
    I've tried to create a few collapsible panels but I have come across a problem. When I checked the error debugger in FF, I get an issue that states "Spry undefined". I have checked a few of the forums on this and I have tried some of the solutions but still find myself stuck.
    http://tailoredart.ca/Mesco/default.html
    Please help.
    Thanks!

    That error means you Spry files cannot be found did you upload all 
    files to your server? If yes, than post a online.

  • Spry Collapsible Panel Problem in Safari

    When check my site in Firefox, there are no problems, but
    when I open it in Safari, none of the CSS settings are applied to
    the Collapsible Panel widget. Some settings I have make the widget
    200 px width and make it have a black background, but Safari
    doesn't show these. HERE IS THE CODE OF MY HOMEPAGE:
    <!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">
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <style type="text/css">
    body {
    background: url(Victorias%20Secret%20models.jpg) fixed
    no-repeat center bottom;
    </style>
    <script src="SpryAssets/SpryCollapsiblePanel.js"
    type="text/javascript"></script>
    <link href="SpryAssets/SpryCollapsiblePanel.css"
    rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab"
    tabindex="0"></div>
    <div class="CollapsiblePanelContent">
    <p>BLOG</p>
    <p>LISTEN</p>
    <p>WATCH</p>
    <p>ABOUT</p>
    </div>
    </div>
    <script type="text/javascript">
    var CollapsiblePanel1 = new
    Spry.Widget.CollapsiblePanel("CollapsiblePanel1",
    {contentIsOpen:false});
    </script>
    </body>
    </html>
    AND HERE IS THE CODE OF MY CSS
    @charset "UTF-8";
    .CollapsiblePanel {
    margin: 0px;
    padding: 0px;
    width: 200px;
    color: #FFFFFF;
    background-color: #000000;
    .CollapsiblePanelTab {
    background-color: #000000;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    font-family: sans-serif;
    font-size: 0.7em;
    font-weight: bold;
    color: #FFFFFF;
    height: 40px;
    .CollapsiblePanelContent {
    margin: 0px;
    padding: 0px;
    background-color: #000;
    .CollapsiblePanelTab a {
    color: black;
    text-decoration: none;
    background-color: #000;
    height: 40px;
    .CollapsiblePanelOpen .CollapsiblePanelTab {
    background-color: #000;
    color: #FFFFFF;
    .CollapsiblePanelTabHover, .CollapsiblePanelOpen
    .CollapsiblePanelTabHover {
    background-color: #000;
    .CollapsiblePanelFocused .CollapsiblePanelTab {
    background-color: #000;
    THANKS FOR YOUR HELP

    Can't tell by that code, can you post a URL to the page?
    Ken Ford
    Adobe Community Expert - Dreamweaver/ColdFusion
    Fordwebs, LLC
    http://www.fordwebs.com
    "kkaiser1" <[email protected]> wrote in
    message news:[email protected]...
    > When check my site in Firefox, there are no problems,
    but when I open it in
    > Safari, none of the CSS settings are applied to the
    Collapsible Panel widget.
    > Some settings I have make the widget 200 px width and
    make it have a black
    > background, but Safari doesn't show these. HERE IS THE
    CODE OF MY HOMEPAGE:
    > <!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">
    > <head>
    >
    > <title>Untitled Document</title>
    >
    > <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    > <style type="text/css">
    >
    > body {
    > background: url(Victorias%20Secret%20models.jpg) fixed
    no-repeat center
    > bottom;
    > }
    >
    > </style>
    > <script src="SpryAssets/SpryCollapsiblePanel.js"
    > type="text/javascript"></script>
    > <link href="SpryAssets/SpryCollapsiblePanel.css"
    rel="stylesheet"
    > type="text/css" />
    > </head>
    > <body>
    > <div id="CollapsiblePanel1"
    class="CollapsiblePanel">
    > <div class="CollapsiblePanelTab"
    tabindex="0"></div>
    > <div class="CollapsiblePanelContent">
    > <p>BLOG</p>
    > <p>LISTEN</p>
    > <p>WATCH</p>
    > <p>ABOUT</p>
    > </div>
    > </div>
    > <script type="text/javascript">
    >
    > var CollapsiblePanel1 = new
    Spry.Widget.CollapsiblePanel("CollapsiblePanel1",
    > {contentIsOpen:false});
    >
    > </script>
    > </body>
    > </html>
    >
    >
    > AND HERE IS THE CODE OF MY CSS
    >
    > @charset "UTF-8";
    >
    > .CollapsiblePanel {
    > margin: 0px;
    > padding: 0px;
    > width: 200px;
    > color: #FFFFFF;
    > background-color: #000000;
    > }
    >
    > .CollapsiblePanelTab {
    > background-color: #000000;
    > margin: 0px;
    > padding: 0px;
    > cursor: pointer;
    > -moz-user-select: none;
    > -khtml-user-select: none;
    > font-family: sans-serif;
    > font-size: 0.7em;
    > font-weight: bold;
    > color: #FFFFFF;
    > height: 40px;
    > }
    >
    > .CollapsiblePanelContent {
    > margin: 0px;
    > padding: 0px;
    > background-color: #000;
    > }
    >
    > .CollapsiblePanelTab a {
    > color: black;
    > text-decoration: none;
    > background-color: #000;
    > height: 40px;
    > }
    >
    > .CollapsiblePanelOpen .CollapsiblePanelTab {
    > background-color: #000;
    > color: #FFFFFF;
    > }
    >
    > .CollapsiblePanelTabHover, .CollapsiblePanelOpen
    .CollapsiblePanelTabHover {
    > background-color: #000;
    > }
    >
    > .CollapsiblePanelFocused .CollapsiblePanelTab {
    > background-color: #000;
    > }
    >
    >
    > THANKS FOR YOUR HELP
    >

  • Spry Collapsible Panel problem when previewing in web browser

    Hello.
    I have inserted a spry collapsible panel into my website, made ZERO adjustments to any of the scripting or even css styling, and previewed the panel in my Safari browser. It does not seem to be working correctly. I've attached a couple of images showing what the panel looks like in the browser. My site is not published yet, so I cannot give out the url.
    Is something wrong with the js file? I tried the panel earlier on a different site on the same computer and it was working fine.
    the "Tab" menu text does not fit inside the grey box. Everything collapses fine, however, the gray box is too thin for the text. I've tried adjusting it in the CSS sheet, but it doesn't seem to change anything.
    This is the panel in the collapsed state. It looks bad. I know it's not supposed to work like this.
    When I preview the site in "live view" everything works fine...
    // SpryCollapsiblePanel.js - version 0.8 - Spry Pre-Release 1.6.1
    // Copyright (c) 2006. Adobe Systems Incorporated.
    // All rights reserved.
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions are met:
    //   * Redistributions of source code must retain the above copyright notice,
    //     this list of conditions and the following disclaimer.
    //   * Redistributions in binary form must reproduce the above copyright notice,
    //     this list of conditions and the following disclaimer in the documentation
    //     and/or other materials provided with the distribution.
    //   * Neither the name of Adobe Systems Incorporated nor the names of its
    //     contributors may be used to endorse or promote products derived from this
    //     software without specific prior written permission.
    // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    // POSSIBILITY OF SUCH DAMAGE.
    (function() { // BeginSpryComponent
    if (typeof Spry == "undefined") window.Spry = {}; if (!Spry.Widget) Spry.Widget = {};
    Spry.Widget.CollapsiblePanel = function(element, opts)
    this.element = this.getElement(element);
    this.focusElement = null;
    this.hoverClass = "CollapsiblePanelTabHover";
    this.openClass = "CollapsiblePanelOpen";
    this.closedClass = "CollapsiblePanelClosed";
    this.focusedClass = "CollapsiblePanelFocused";
    this.enableAnimation = true;
    this.enableKeyboardNavigation = true;
    this.animator = null;
    this.hasFocus = false;
    this.contentIsOpen = false;
    this.openPanelKeyCode = Spry.Widget.CollapsiblePanel.KEY_DOWN;
    this.closePanelKeyCode = Spry.Widget.CollapsiblePanel.KEY_UP;
    Spry.Widget.CollapsiblePanel.setOptions(this, opts);
    this.attachBehaviors();
    Spry.Widget.CollapsiblePanel.prototype.getElement = function(ele)
    if (ele && typeof ele == "string")
    return document.getElementById(ele);
    return ele;
    Spry.Widget.CollapsiblePanel.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.CollapsiblePanel.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.CollapsiblePanel.prototype.hasClassName = function(ele, className)
    if (!ele || !className || !ele.className || ele.className.search(new RegExp("\\b" + className + "\\b")) == -1)
    return false;
    return true;
    Spry.Widget.CollapsiblePanel.prototype.setDisplay = function(ele, display)
    if( ele )
    ele.style.display = display;
    Spry.Widget.CollapsiblePanel.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.CollapsiblePanel.prototype.onTabMouseOver = function(e)
    this.addClassName(this.getTab(), this.hoverClass);
    return false;
    Spry.Widget.CollapsiblePanel.prototype.onTabMouseOut = function(e)
    this.removeClassName(this.getTab(), this.hoverClass);
    return false;
    Spry.Widget.CollapsiblePanel.prototype.open = function()
    this.contentIsOpen = true;
    if (this.enableAnimation)
    if (this.animator)
    this.animator.stop();
    this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, true, { duration: this.duration, fps: this.fps, transition: this.transition });
    this.animator.start();
    else
    this.setDisplay(this.getContent(), "block");
    this.removeClassName(this.element, this.closedClass);
    this.addClassName(this.element, this.openClass);
    Spry.Widget.CollapsiblePanel.prototype.close = function()
    this.contentIsOpen = false;
    if (this.enableAnimation)
    if (this.animator)
    this.animator.stop();
    this.animator = new Spry.Widget.CollapsiblePanel.PanelAnimator(this, false, { duration: this.duration, fps: this.fps, transition: this.transition });
    this.animator.start();
    else
    this.setDisplay(this.getContent(), "none");
    this.removeClassName(this.element, this.openClass);
    this.addClassName(this.element, this.closedClass);
    Spry.Widget.CollapsiblePanel.prototype.onTabClick = function(e)
    if (this.isOpen())
    this.close();
    else
    this.open();
    this.focus();
    return this.stopPropagation(e);
    Spry.Widget.CollapsiblePanel.prototype.onFocus = function(e)
    this.hasFocus = true;
    this.addClassName(this.element, this.focusedClass);
    return false;
    Spry.Widget.CollapsiblePanel.prototype.onBlur = function(e)
    this.hasFocus = false;
    this.removeClassName(this.element, this.focusedClass);
    return false;
    Spry.Widget.CollapsiblePanel.KEY_UP = 38;
    Spry.Widget.CollapsiblePanel.KEY_DOWN = 40;
    Spry.Widget.CollapsiblePanel.prototype.onKeyDown = function(e)
    var key = e.keyCode;
    if (!this.hasFocus || (key != this.openPanelKeyCode && key != this.closePanelKeyCode))
    return true;
    if (this.isOpen() && key == this.closePanelKeyCode)
    this.close();
    else if ( key == this.openPanelKeyCode)
    this.open();
    return this.stopPropagation(e);
    Spry.Widget.CollapsiblePanel.prototype.stopPropagation = function(e)
    if (e.preventDefault) e.preventDefault();
    else e.returnValue = false;
    if (e.stopPropagation) e.stopPropagation();
    else e.cancelBubble = true;
    return false;
    Spry.Widget.CollapsiblePanel.prototype.attachPanelHandlers = function()
    var tab = this.getTab();
    if (!tab)
    return;
    var self = this;
    Spry.Widget.CollapsiblePanel.addEventListener(tab, "click", function(e) { return self.onTabClick(e); }, false);
    Spry.Widget.CollapsiblePanel.addEventListener(tab, "mouseover", function(e) { return self.onTabMouseOver(e); }, false);
    Spry.Widget.CollapsiblePanel.addEventListener(tab, "mouseout", function(e) { return self.onTabMouseOut(e); }, 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.CollapsiblePanel.addEventListener(this.focusElement, "focus", function(e) { return self.onFocus(e); }, false);
    Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "blur", function(e) { return self.onBlur(e); }, false);
    Spry.Widget.CollapsiblePanel.addEventListener(this.focusElement, "keydown", function(e) { return self.onKeyDown(e); }, false);
    Spry.Widget.CollapsiblePanel.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.CollapsiblePanel.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.CollapsiblePanel.prototype.attachBehaviors = function()
    var panel = this.element;
    var tab = this.getTab();
    var content = this.getContent();
    if (this.contentIsOpen || this.hasClassName(panel, this.openClass))
    this.addClassName(panel, this.openClass);
    this.removeClassName(panel, this.closedClass);
    this.setDisplay(content, "block");
    this.contentIsOpen = true;
    else
    this.removeClassName(panel, this.openClass);
    this.addClassName(panel, this.closedClass);
    this.setDisplay(content, "none");
    this.contentIsOpen = false;
    this.attachPanelHandlers();
    Spry.Widget.CollapsiblePanel.prototype.getTab = function()
    return this.getElementChildren(this.element)[0];
    Spry.Widget.CollapsiblePanel.prototype.getContent = function()
    return this.getElementChildren(this.element)[1];
    Spry.Widget.CollapsiblePanel.prototype.isOpen = function()
    return this.contentIsOpen;
    Spry.Widget.CollapsiblePanel.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.CollapsiblePanel.prototype.focus = function()
    if (this.focusElement && this.focusElement.focus)
    this.focusElement.focus();
    Spry.Widget.CollapsiblePanel.PanelAnimator = function(panel, doOpen, opts)
    this.timer = null;
    this.interval = 0;
    this.fps = 60;
    this.duration = 500;
    this.startTime = 0;
    this.transition = Spry.Widget.CollapsiblePanel.PanelAnimator.defaultTransition;
    this.onComplete = null;
    this.panel = panel;
    this.content = panel.getContent();
    this.doOpen = doOpen;
    Spry.Widget.CollapsiblePanel.setOptions(this, opts, true);
    this.interval = Math.floor(1000 / this.fps);
    var c = this.content;
    var curHeight = c.offsetHeight ? c.offsetHeight : 0;
    this.fromHeight = (doOpen && c.style.display == "none") ? 0 : curHeight;
    if (!doOpen)
    this.toHeight = 0;
    else
    if (c.style.display == "none")
    // The content area is not displayed so in order to calculate the extent
    // of the content inside it, we have to set its display to block.
    c.style.visibility = "hidden";
    c.style.display = "block";
    // Clear the height property so we can calculate
    // the full height of the content we are going to show.
    c.style.height = "";
    this.toHeight = c.offsetHeight;
    this.distance = this.toHeight - this.fromHeight;
    this.overflow = c.style.overflow;
    c.style.height = this.fromHeight + "px";
    c.style.visibility = "visible";
    c.style.overflow = "hidden";
    c.style.display = "block";
    Spry.Widget.CollapsiblePanel.PanelAnimator.defaultTransition = function(time, begin, finish, duration) { time /= duration; return begin + ((2 - time) * time * finish); };
    Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.start = function()
    var self = this;
    this.startTime = (new Date).getTime();
    this.timer = setTimeout(function() { self.stepAnimation(); }, this.interval);
    Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stop = function()
    if (this.timer)
    clearTimeout(this.timer);
    // If we're killing the timer, restore the overflow property.
    this.content.style.overflow = this.overflow;
    this.timer = null;
    Spry.Widget.CollapsiblePanel.PanelAnimator.prototype.stepAnimation = function()
    var curTime = (new Date).getTime();
    var elapsedTime = curTime - this.startTime;
    if (elapsedTime >= this.duration)
    if (!this.doOpen)
    this.content.style.display = "none";
    this.content.style.overflow = this.overflow;
    this.content.style.height = this.toHeight + "px";
    if (this.onComplete)
    this.onComplete();
    return;
    var ht = this.transition(elapsedTime, this.fromHeight, this.distance, this.duration);
    this.content.style.height = ((ht < 0) ? 0 : ht) + "px";
    var self = this;
    this.timer = setTimeout(function() { self.stepAnimation(); }, this.interval);
    Spry.Widget.CollapsiblePanelGroup = function(element, opts)
    this.element = this.getElement(element);
    this.opts = opts;
    this.attachBehaviors();
    Spry.Widget.CollapsiblePanelGroup.prototype.setOptions = Spry.Widget.CollapsiblePanel.prototype.setOptions;
    Spry.Widget.CollapsiblePanelGroup.prototype.getElement = Spry.Widget.CollapsiblePanel.prototype.getElement;
    Spry.Widget.CollapsiblePanelGroup.prototype.getElementChildren = Spry.Widget.CollapsiblePanel.prototype.getElementChildren;
    Spry.Widget.CollapsiblePanelGroup.prototype.setElementWidget = function(element, widget)
    if (!element || !widget)
    return;
    if (!element.spry)
    element.spry = new Object;
    element.spry.collapsiblePanel = widget;
    Spry.Widget.CollapsiblePanelGroup.prototype.getElementWidget = function(element)
    return (element && element.spry && element.spry.collapsiblePanel) ? element.spry.collapsiblePanel : null;
    Spry.Widget.CollapsiblePanelGroup.prototype.getPanels = function()
    if (!this.element)
    return [];
    return this.getElementChildren(this.element);
    Spry.Widget.CollapsiblePanelGroup.prototype.getPanel = function(panelIndex)
    return this.getPanels()[panelIndex];
    Spry.Widget.CollapsiblePanelGroup.prototype.attachBehaviors = function()
    if (!this.element)
    return;
    var cpanels = this.getPanels();
    var numCPanels = cpanels.length;
    for (var i = 0; i < numCPanels; i++)
    var cpanel = cpanels[i];
    this.setElementWidget(cpanel, new Spry.Widget.CollapsiblePanel(cpanel, this.opts));
    Spry.Widget.CollapsiblePanelGroup.prototype.openPanel = function(panelIndex)
    var w = this.getElementWidget(this.getPanel(panelIndex));
    if (w && !w.isOpen())
    w.open();
    Spry.Widget.CollapsiblePanelGroup.prototype.closePanel = function(panelIndex)
    var w = this.getElementWidget(this.getPanel(panelIndex));
    if (w && w.isOpen())
    w.close();
    Spry.Widget.CollapsiblePanelGroup.prototype.openAllPanels = function()
    var cpanels = this.getPanels();
    var numCPanels = cpanels.length;
    for (var i = 0; i < numCPanels; i++)
    var w = this.getElementWidget(cpanels[i]);
    if (w && !w.isOpen())
    w.open();
    Spry.Widget.CollapsiblePanelGroup.prototype.closeAllPanels = function()
    var cpanels = this.getPanels();
    var numCPanels = cpanels.length;
    for (var i = 0; i < numCPanels; i++)
    var w = this.getElementWidget(cpanels[i]);
    if (w && w.isOpen())
    w.close();
    })(); // EndSpryComponent

    I have inserted a spry collapsible panel into my website, made ZERO
    adjustments to any of the scripting or even css styling
    That is good, that means that I have a local copy of the scripting and css files eliminating the need to attach the code to a post.
    Is something wrong with the js file? I tried the panel earlier on a
    different site on the same computer and it was working fine
    The fact that it works on a different site means that something is correct. My assumption is that the scripting and css files are doing their job correctly and to answer your question regarding the js file, no.
    Having eliminated the Spry original JavaScript and CSS files as being the culprits, there must be a problem with the rest of the site, incorrect HTML, other interfering JavaScript or CSS.
    I can keep guessing, but only those persons that are privy to your code can give you any positive input. Please find a way to upload your files so that we can see the code in context.
    To this end, screen captures do not assist in solving the problem, they only add to others' amusement at seeing the problem.
    Ben
    PS I forgot to say, welcome to our community and yes I am a cynical old codger, sorry.

  • SPRY Collapsible Panel problem in Chrome

    I have a SPRY Collapsible Panel in a nested template that is not working properly in Chrome.
    Here is an example:
    1) Go to http://www.realestate-bigbear.com/search/map-search.html
    2) In the "search big bear real estate" area... click on the [+] to expand the "QUICK SEARCH LINKS"
    3) The panel opens, sometimes it works, sometimes the bottom is cut off (it is supposed to end with a red bar like at the top).  If you move your mouse down a column, you will reveal the missing part
    3) Now, if you choose one of the links -- lets say, the first one [Big Bear Lakefronts], you will be taken to a similar page, but to the #search-results anchor.  If you again try to reveal the panel with the [+] things only get worse. Sometimes just the top red bar is revealed, sometimes 170px... I cannot figure it out.
    The panel seems to be working fine in IE and Firefox, but not Chrome.
    Please help,
    Thanks in advance.

    Using Chrome Version 23.0.1271.64, I could not replicate the problem.
    During my analysis, I could not find any problem that could be associated with the proper workings of Spry. However, when I look at http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.realestate-bigbear.com%2Fsear ch%2Fmap-search.html, there seem to be a number of issues that could send your version of Chrome into a frenzy.
    After you have fixed the above errors and the problem persists, please come back here and I shall have a more in-depth look.

  • Spry Collapsible Panel Problem with Safari

    Hi my Spry Collapsible Panel looks great in Firefox, Camino, and IE, but the top border, which I am using as a line to divide items in the list, and which I have specified in the CSS page, doesn't show up in Safari and Google Chrome.  Just nothing, and everything else works.  Any help would be GREATLY appreciated!   My CSS page reads as follows:
    .CollapsiblePanel {
        color: #000000;
        border-top-style: solid;
        border-top-width: 0.5px;
        padding-top: 3px;
        padding-right: 0px;
        padding-bottom: 3px;
        padding-left: 0px;
    #apDiv3 #CollapsibleLINE {
        border-top-width: 20px;
        border-top-style: solid;
        border-top-color: #330099;
    .CollapsiblePanelTab {
        margin: 0px;
        padding: 20px;
        cursor: pointer;
        -moz-user-select: none;
        -khtml-user-select: none;
        font-family: sans-serif;
        font-size: 0.7em;
        font-weight: bold;
        color: #3366FF;
        border-top-width: thick;
        border-right-width: thin;
        border-bottom-width: thin;
        border-left-width: thin;
        border-top-style: solid;
        border-top-color: #FF00CC;
        border-right-color: #000000;
        border-bottom-color: #000000;
        border-left-color: #000000;
    /* This is the selector for a CollapsiblePanel's Content area. It's important to note that
    * you should never put any padding on the content area element if you plan to
    * use the CollapsiblePanel's open/close animations. Placing a non-zero padding on the content
    * element can cause the CollapsiblePanel to abruptly grow in height while the panels animate.
    * The name of the class ("CollapsiblePanelContent") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style a
    * CollapsiblePanel content container.
    .CollapsiblePanelContent {
        margin: 0px;
        padding: 0px;
    .CollapsiblePanelTab a {
        text-decoration: none;
    /* This is an example of how to change the appearance of the panel tab as the
    * mouse hovers over it. The class "CollapsiblePanelTabHover" is programatically added
    * and removed from panel tab containers as the mouse enters and exits the tab container.
    .CollapsiblePanelTabHover,  .CollapsiblePanelOpen .CollapsiblePanelTabHover {
        color: #666666;
    .CollapsiblePanelFocused .CollapsiblePanelTab {
    #apDiv1 .overlay {
    and my page looks like this:
    <link href="untitled.css" rel="stylesheet" type="text/css">
    <script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    #apDiv1 {
        position:absolute;
        width:808px;
        height:502px;
        z-index:1;
        left: 0px;
        top: 111px;
    #apDiv2 {
        position:absolute;
        width:2;
        height:747px;
        z-index:2;
        top: 109px;
        left: 34px;
        filter: alpha(opacity=75);
    #apDiv3 {
        position:absolute;
        width:128px;
        height:344px;
        z-index:3;
        left: 57px;
        top: 126px;
        filter: alpha(opacity=75);
    -->
    div:active, div:focus, div:hover {
        outline-style: none;
        -moz-outline-style:none;
    </style>
    <link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" >
    <style type="text/css">
    <!--
    #apDiv4 {
        position:absolute;
        left:403px;
        top:115px;
        width:164px;
        height:312px;
        z-index:4;
    #apDiv3 #CollapsiblePanel2 .CollapsiblePanelContent font {
        color: #000000;
    #apDiv5 {
        position:absolute;
        left:57px;
        top:22px;
        width:722px;
        height:78px;
        z-index:4;
    #apDiv6 {
        position:absolute;
        left:551px;
        top:22px;
        width:397px;
        height:39px;
        z-index:5;
    #apDiv7 {
        position:absolute;
        left:285px;
        top:123px;
        width:478px;
        height:398px;
        z-index:5;
    #apDiv8 {
        position:absolute;
        left:325px;
        top:174px;
        width:276px;
        height:153px;
        z-index:6;
    -->
    </style>
    <div id="apDiv5"><img src="IMAGES/logo3.jpg" width="843" height="83" /></div>
    <div id="frontphoto"></div>
    <div id="apDiv1"><img src="IMAGES/Backgound.jpg" alt="back" width="1032" height="516" /></div>
    <div id="apDiv2"><img src="IMAGES/overlay.png" alt="Overlay" width="174" height="720" /></div>
    <div id="apDiv3">
      <div id="CollapsiblePanel2" class="CollapsiblePanel">
        <div tabindex="0"><font size="2" face="Georgia, Times New Roman, Times, serif">photography</font></div>
        <div class="CollapsiblePanelContent">
          <table width="118" border="0" align="center" cellpadding="3" cellspacing="0">
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">portraits</font></em></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">events</font></em></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">landscapes</font></em></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">experiments</font></em></td>
            </tr>
          </table>
        </div>
      </div>
      <div id="CollapsiblePanel1" class="CollapsiblePanel">
        <div tabindex="0"><font size="2" face="Georgia, Times New Roman, Times, serif">print</font></div>
        <div class="CollapsiblePanelContent">
          <table width="118" border="0" align="center" cellpadding="3" cellspacing="0">
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">posters</font></em></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">books &amp; packaging</font></em></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">invitations</font></em></td>
            </tr>
          </table>
        </div>
      </div>
      <div id="CollapsiblePanel4" class="CollapsiblePanel">
        <div tabindex="0"><font size="2" face="Georgia, Times New Roman, Times, serif">motion</font></div>
        <div>
          <table width="120" border="0" align="center" cellpadding="3" cellspacing="0">
            <tr>
              <td width="114"><em><font size="2" face="Georgia, Times New Roman, Times, serif">websites</font></em></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">animations</font></em></td>
            </tr>
          </table>
        </div>
      </div>
      <div id="CollapsiblePanel5" class="CollapsiblePanel">
        <div tabindex="0"><font size="2" face="Georgia, Times New Roman, Times, serif">about</font></div>
        <div>
          <table width="120" border="0" align="center" cellpadding="3" cellspacing="0">
            <tr>
              <td width="114"><em><font size="2" face="Georgia, Times New Roman, Times, serif">honors</font></em></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">background</font></em></td>
            </tr>
          </table>
        </div>
      </div>
      <div id="CollapsiblePanel6" class="CollapsiblePanel">
        <div tabindex="0"><font size="2" face="Georgia, Times New Roman, Times, serif">contact</font></div>
        <div class="CollapsiblePanelContent">
          <table width="120" border="0" align="center" cellpadding="3" cellspacing="0">
            <!--DWLayoutTable-->
            <tr>
              <td width="114"><a href="mailto:[email protected]" style="text-decoration:none"><font color="#333333" size="2" face="Georgia, Times New Roman, Times, serif">email</font></a></td>
            </tr>
            <tr>
              <td><em><font size="2" face="Georgia, Times New Roman, Times, serif">202.321.4248</font></em></td>
            </tr>
          </table>
        </div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var CollapsiblePanel4 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel4", {contentIsOpen:false});
    var CollapsiblePanel5 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel5", {contentIsOpen:false});
    var CollapsiblePanel6 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel6", {contentIsOpen:false});
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});
    var CollapsiblePanel2 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel2", {contentIsOpen:false});
    //-->
    </script>

    I am sorry, I tried in FF, IE7/8 and Chrome and they all look the same.

  • Make a spry collapsible panel open on hover??

    Hi All,
    I'm trying to play with the Spry Collapsible Panel and would
    like to have it open on hover but not on the on click, I've
    attached the standard js code Dreamweaver produces, and would be
    very grateful if you could highlight what needs to be
    changed,---

    http://labs.adobe.com/technologies/spry/articles/tabbed_panel/index.html
    See the section titled Open panels programmatically
    <li class="TabbedPanelsTab" tabindex="0"
    onmouseover="TabbedPanels1.showPanel(0)">Tab 1</li>
    <li class="TabbedPanelsTab" tabindex="0"
    onmouseover="TabbedPanels1.showPanel(1)">Tab 2</li>
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "miachu" <[email protected]> wrote in
    message news:fvihb0$miq$[email protected]..
    > hi there,
    >
    > did you ever find a solution to this dreamweaver
    collapsible panel problem? i
    > am having the same problem...i need it to open on hover
    instead of click. it
    > makes so much more sense for them to have it on
    hover/roll over!
    >
    > help would be much appreciated!
    > thanks.
    >

  • Spry Collapsible Panel Resize Problem

    I have 2 collapsible panels within  a table on a site, and it works great, except for the fact that when all of the panels are closed:
    In IE7: The tabs move to the middle of the table and break the layout.
    In Firefox: The tabs move to the BOTTOM of the table and break the layout.
      The example can be found here:
    http://www.go9production.com/agm/products1.php
    It looks to me like it's resizing the entire cell and making it too small, but I don't know how to fix this without preventing it from getting larger either.  Can anyone help me at least get them to close at the TOP of the page rather than the middle or bottom?

    This is what I see in Chrome
    and similarly in IE7/8/9, FF and Safari
    Gramps

  • Target Named Anchor in a Spry Collapsible Panel from a different page

    Let me start by saying I have combed this forum (and others) looking for a resolution to this.  I am familiar with David Powers solution on Foundationphp.com and am using that code in project to open the collapsible panel from a separate page and it works beautifullly.  The problem I have is that I want the browser to move down to a specific named anchor inside that opened collapsible panel when clicked from a different page.
    Snippets of my current code here.
    Below is the code that I have on an image that when clicked goes to the correct page and opens Panel1.  Works Perfectly!
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1"><img src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227" height="175" /></a>
    Below is the link to the .js file and the script in the head of the target page
    <script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
    <script type="text/javascript">
    // Grabs the values of the URL parameters for the current URL.
    var params = Spry.Utils.getLocationParamsAsObject();
    </script>
    Below is the code that I have on the target page for Panel1
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:params.col1 ? true : false},{duration: 1000});
    </script>
    If I have a named anchor say <a name="species1" id="species1"></a> down in the page, how do I target that named anchor from my link on the separate page.  I have tried adding the #species1 to the end of the link on the link page (see below) but with no luck. I believe those were the instructions on foundationphp.com site.
    <a href="bamboo-species.php?col1=open#CollapsiblePanel1#species1"><img  src="images/Content/Photos/HomeScroll/blackTmbor.jpg" width="227"  height="175" /></a>
    I hope (and suspect) that this is an easy fix, I just do not know what it is.  Any help or direction where to look is greatly appreciated.

    I once had the same issue can created a small function that allows me to "jump" to a element.
    function scrollTo( element ){
         var stylize = function( element){ return !+"\v1" ? element.currentStyle : document.defaultView.getComputedStyle( element , null ) },
              getPosition = function( element ){
                   // based on the SpryEffect's module:
                   var computedStyle, tryComputedStyle,
                        position = { x: 0, y: 0 };
                        if ( element.style.left  && /px/i.test(element.style.left) ){
                             position.x = parseInt(element.style.left, 10); // without padding
                        } else {
                             computedStyle = stylize( element );
                             var tryComputedStyle = computedStyle && computedStyle.left && /px/i.test( computedStyle.left );
                             if (tryComputedStyle)
                                  position.x = parseInt( computedStyle.left, 10 ); // without padding, includes css
                             if(!tryComputedStyle || position.x == 0) // otherwise we might run into problems on safari and opera (mac only)
                                  position.x = element.offsetLeft;   // includes padding
                        if ( element.style.top && /px/i.test(element.style.top) )
                             position.y = parseInt( element.style.top, 10); // without padding
                        else
                             if ( !computedStyle )
                                  computedStyle = stylize( element );
                        var tryComputedStyle = computedStyle && computedStyle.top && /px/i.test( computedStyle.top );
                             if ( tryComputedStyle )
                                  position.y = parseInt( computedStyle.top, 10 ); // without padding, includes css
                             if( !tryComputedStyle || position.y == 0 ) // otherwise we might run into problems on safari and opera (mac only)
                                  position.y = element.offsetTop;   // includes padding
                   return position;
              scroll( 0, getPosition( element ).y );
    So now we have a scrollTo function that accepts a pure HTML element as argument, all what is left to do is figure out if we have a hash, and if the anchor exits on the page.
    ( hopes this works, i wrote it without testing, but you get the general idea ):
    if( window.location.hash ){
         var hash = window.location.hash.substr(1), // remove the # from the hash
         element;
         // as anchors can also be used with id attributes, check that first,
         element = document.getElementById( hash );
         // maby we used name="" attribute
         if( !element && ( element = document.getElementsByName( hash )) ){
              element = element[0];
         // if we have a match:
         if( element ){
              // give the collapsible panel some time to init and update the DOM;
              setTimeout(function(){ scrollTo( element ) },0);
    \o/

  • IE 7 issue with Spry Collapsible Panel

    Hi Folks
    My problem is I have dropped in a small collapsible panel at the top (right) of my site pages
    which basically houses a sharing panel and a Google+1 button.
    As ever it works well on all the other major browsers with the exception of IE (7).
    Here it remains in the open position and clicking on the tab has no effect.
    I have tried many of the suggestions put forward including;
    1. Altering the js file (line 431 to now read 'this.content.style.height = "auto";')
    2. Given the panel a height of 'auto'
    3. Tweaked the z-index stacking
    4. Reordered my other js files in case of interference
    5. etc.
    I was wondering whether placing the Google+1 button inside the panel was the issue...
    Needless to say it was not with the other browsers.
    Here is the site URL : hughsitton.com/slideshow/grey_Site/contact_Grey.html
    As per usual the site goes ok then these seemingly inocuous little problems become huge and eat up oceans of time!
    Any help would be greatly appreciated as my tether end is close to being reached!
    (Apologies if you find my coding a little messy. Hope not.)
    Many Thanks
    Chris
    Message was edited by: m4hs33r

    Thank you, that gave me what I was looking for. Although now I have come across another issue when I put text in that is not the same length. What would cause the extra white space in the menu box.

  • Google map inside the spry collapsible panel

    So this time I've bumped into interesting 'bug'. I've placed the google map inside the spry collapsible panel. Panel is set to the closed mode on load of page. When I open the tab, map appears, but address marker is hidden behind the top left corner. If I place the same map outside the collapsiple panel it renders all well.
    So my  question is whether there is any way around this issue. When I know where the marker is hidden I can simply move the map and see it, but customer who's not aware of the problem will see only blank map with not marked address which is not acceptable.
    cheers,
    Simon

    Sure mate. Here you go:
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
                  <div class="CollapsiblePanelTab" tabindex="0">SHOW MAP</div>
                  <div class="CollapsiblePanelContent">
                  <cfmap  width="242" height="200" zoomlevel="12" name="mainMap" markercolor="333444" showscale="false"
    typecontrol="none"  showcentermarker="true" centeraddress="#get_event.event_address1#, #get_event.event_address2#, #get_event.event_city#,#get_event.event_county#, #get_event.event_postcode#, #get_event.event_country#  "
    ></cfmap>
                  </div>
                </div>
    And this bit goes at the bottom of the code :
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});
      </script>
    And that would be the preview that I get once the panel is open:
    And that is the preview of how it should look:
    As you can see the map marker sticks to the top left corner. I was wondering whether there is any way to re-focus it once the panel is open.
    cheers,
    Simon

  • Spry collapsible panel - repeating region

    Hi,
    I'm trying to make a repeating region that contains a spry
    collapsable panel.
    The problem is that i need to develop a way to automatically
    increase the ID of the spry panel.
    The problem I am encountering is that only the first
    Collapsible Panel works properly. The remainder are displaying the
    data, but will not open and close when their tabs are clicked. It
    appears that all are being repeated as
    id="CollapsiblePanel1".
    Does anyone have a way to increment the Tab & Content
    ID's?
    On another forum, somebody has suggested using the following
    PHP - although having never used PHP before, I am uncertain as to
    where I insert this into my code:

    bump

  • Spry Collapsible Panel Error in IE

    Hi,
    Up until last week my collapsible panel was working fine in
    IE 7, but now it has stopped working. Originally it was hideen
    until a user clicks a link whereby it would be displayed. This is
    working fine in firefox but now in IE7 it appears as default and
    will not move when clicked. An error message is displayed saying "
    'Spry' is undefined " appears. I have made sure all links to .js
    files are correct. I am thinking it must be something to do with
    IE7 (as usual) as this error even appears on the sample page for
    collapsible panels on the adobe spry site. Could anyone shed some
    light on this problem.
    Many Thanks
    Woodey

    That error usually occurs when the page isn't actually
    loading the JS files. I know you said you verified the JS paths,
    but have you actually tried loading the JS files directly into IE7
    to see if it is getting some access error, or if the JS file on
    your server is corrupted?
    --== Kin ==--

  • Collapsible Panel open on new page

    I am using the Spry Collapsible Panel as a sidebar menu. I
    would like to be able to click on a menu link, which takes me to a
    new page with the relevant panel staying open on that new page. Is
    this possible? If so, how do I make it happen? I am not great with
    codes and other jargon, so if someone could help me with "exactly"
    what I need to do, it would be most appreciated.
    Many thanks,
    Caryl

    First Include SpryDOMUtils.js in your file;
    Than add this script in the head of the page, or include it
    in a script.
    <script language="JavaScript" type="text/javascript">
    //please note, that my SpryDOMUtils.js is packed so i have a
    the extra onUNLOAD listener in the code below.
    // * Declare vars;
    var Spry;
    if (!Spry.Utils) Spry.Utils = {};
    var coll1; //declare vars outside the function so u can use
    then tab panel everywhere
    // * This is a addition to the SpryDomUtils.js U can include
    it under line #262
    // Or leave it in a javascript external / internal
    // This function will fire anything when u leave the current
    page.
    Spry.Utils.addUnLoadListener = function(handler)
    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);
    //This function will be used by cookie to check if the value
    is allready in the cookie, if so it returns it position
    Spry.Utils.CheckArray = function(a, s){
    for (i=0; i<a.length; i++){if (a
    == s)return i;}return null;
    * SPRY COOKIE; HOW TO USE;
    * constructor:
    Spry.Utils.Cookie(type,string,{name:'cookie_name',path:'/',days:'number'};
    * TYPE:
    * - create : this creates *saves* the cookie
    * : Spry.Utils.Cookie('create','string or
    array',{name:'Spry_Cookie'});
    * - get : this will return the cookie in array format
    * : Spry.Utils.Cookie('get','',{name:'Spry_Cookie'});
    * - destory: this will destroy the cookie
    * : Spry.Utils.Cookie('destroy','',{name:'Spry_Cookie'});
    * - add : this allows u to add value to the cookie with out
    creating a whole new string
    * it will place the add value behind the older cookie
    values, it checks if the value is allready in the cookie,
    * if it is, it will NOT add it in the cookie.
    * STRING:
    * This is the data what u want to store in to the cookie, it
    can be an Array or a normal string / var
    * OPTIONS:
    * - name: : this is the name of the cookie so u can identify
    it
    * - path: : optional path for the cookie;
    * - days: : the amount of days for the cookie to be saved.
    Spry.Utils.Cookie = function(type,string,options){
    if(type == 'create'){
    var expires='';
    if(options.days != null){
    var date = new Date();
    var UTCString;
    date.setTime(date.getTime()+(days*24*60*60*1000));
    expires = "; expires="+date.toUTCString();
    var thePath = '; path=/';
    if(options.path != null){
    thePath = '; path='+options.path;
    document.cookie =
    options.name+'='+escape(string)+expires+thePath;
    }else if(type == 'get'){
    var nameEQ = options.name + '=';
    var ca = document.cookie.split(';');
    for (var i=0; i<ca.length; i++){
    var c = ca;
    while (c.charAt(0)==' '){
    c = c.substring(1,c.length);
    }if (c.indexOf(nameEQ)==0) return
    unescape(c.substring(nameEQ.length,c.length)).split(",");
    }return null;
    }else if(type == 'destory'){
    Spry.Utils.Cookie('create','',{
    name: options.name
    }else if(type == 'add'){
    var c = Spry.Utils.Cookie('get','',{name:options.name});
    if (typeof string == 'object') {
    for (i = 0, str; str = string
    , i < string.length; i++) {
    if (Spry.Utils.CheckArray(c, str) == null)c.push(str);
    }else{
    if (Spry.Utils.CheckArray(c, string) == null) c.push(string)
    Spry.Utils.Cookie('create',c,{name:options.name});
    // * check if we have a panel to set from cookie value
    // * becouse we are using spry dom we can also include the
    tab construction within this function.
    Spry.Utils.addLoadListener(function(){
    //becouse cookie GET returns a array we have to add a var
    before it to store the data
    var tab = Spry.Utils.Cookie('get','',{name:'tabs_history'});
    coll1 = Spry.Widget.CollapsiblePanel('ID_OF_PANEL');
    if(tab == "open")coll1.open();
    else coll1.close();
    Spry.Utils.addUnLoadListener(function(){
    var classnames =
    document.getElementById('ID_OF_THE_PANEL').className;
    if(classnames.match("CollapsiblePanelOpen"))var tab =
    'open';
    else var tab = 'closed';
    //destroy old cookie (i want a clean cookie)
    Spry.Utils.Cookie('destory','',{name:'tabs_history'});
    //setting the new cookie value
    Spry.Utils.Cookie('create',tab,{name:'tabs_history'});
    </script>
    The best way to copy the script is to press the | Quote |
    button and copy it out of th quote becouse there are some taggs
    used by the forum sofware in it.
    If u have placed it in your header u need to do few edits.
    im using coll1 as collaps variable name (constructor) if u
    use a other, change it to yours.
    also change coll1 = new
    Spry.Widget.CollapsiblePanel("coll1"); to your desired ID
    This will solve your problem ;)
    To see it in action on tab panels (where i created it for)
    http://www.3rd-eden.com/Spry-it.com/examples/restyled_tabs/
    This is option 1. If u want 1 panel to be open on your page
    if the user want it. If u want to open a random panel on click
    function, u can use:
    http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html
    SpryURLUtils.js
    This will read param's that u send true a url. and responds
    to it. U can see it in action with the tab panels in the example
    above.
    add this in the header of your page; (also include the
    SpryURLutils.js)
    <script type="text/javascript">
    // Grabs the values of the URL parameters for the current
    URL.
    var params = Spry.Utils.getLocationParamsAsObject();
    </script>
    and change your constructor like this
    <script type="text/javascript">
    //sets default as open.
    var ac1 = new
    Spry.Widget.CollapsiblePanel("myCollapsiblePanel",{contentIsOpen:(params.ac1open
    ? params.ac1open : true));
    </script>
    U can add this behind a url to activate it:
    <a href="testpage.html?ac1open=true" > test page ac1
    open </a>
    true is open, and false is closed. ;)
    I hope this helps :D

  • Spry Collapsible panel works in Safari, Firefox but not in IE 7 and 8

    Revising a page and wish to have the Spry Collapsible Panel load "closed". Never used Spry before but is works ok as mentioned but when page is opened in IE the panel is open and stays open. Clicking does not close it.
    The panel tab reads "CLICK To See Matched Rail & Stile Set-Up Blocks".
    Did I mention I am not a programmer? Thanks for the help.
    http://www.mlcswoodworking.com/shopsite_sc/store/html/smarthtml/pages/set_3pc_roundover_co ve.htm

    jonholcombe wrote:
    Did I mention I am not a programmer? Thanks for the help.
    Jon,
    Not a good way to start. You need to have some basic skills to work on websites. OK, if you want to build a bridge for your toy cars to cross a model railway line, you could probably cope, but to build a bridge in the real world, you need  real knowledge.
    Having said that, I have pulled all of the relevant code from your page to re-construct the collapsible panel and, although the markup would not be the one I would have gone for, the widget works in all browsers, see the code below. This means that the problem lies elsewhere.
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <script src="http://www.mlcswoodworking.com/SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
    <link href="http://www.mlcswoodworking.com/SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css">
    <style>
    #collapsiblepaneltab {
         font-family: Arial, Helvetica, sans-serif;
         font-size: 13px;
         height: 18px;
         width: 645px;
         color: #512b05;
         text-align: center;
         margin-top: 0px;
         padding-top: 0px;
         line-height: 21px;
         font-weight: normal;
    </style>
    </head>
    <body>
    <table width="645" border="0">
    <tr>
        <td><div id="CollapsiblePanel3pcset" class="CollapsiblePanel">
      <div class="CollapsiblePanelTab" id="collapsiblepaneltab" tabindex="0"><img src="http://www.mlcswoodworking.com/shopsite_sc/store/html/smarthtml/graphics4/collapsiblepanelarrow102.gif" alt="" width="8" height="8" border="0" /> CLICK To See Matched Rail &amp; Stile Set-Up Blocks</div>
      <div class="CollapsiblePanelContent"><table border="1" cellpadding="0" cellspacing="0" width="645">
      <tr>
        <td colspan="4" align="center" valign="middle" bgcolor=""><font size="1"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2" color="black"><strong>SET-UP BLOCKS FOR MATCHED RAIL AND STILE BITS</strong></font></td>
      </tr>
      <tr>
        <td align="center" valign="middle" bgcolor="#cccc99" width="55"><font size="1"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><font color="black"><strong>Item</strong></font></font></font></td>
        <td align="center" valign="middle" bgcolor="#cccc99"><font size="1"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><font size="2" color="black"><strong>Set-Up Block Profile</strong></font></font></font></td>
        <td align="center" valign="middle" bgcolor="#cccc99" width="55"><font size="1"><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><font color="black"><strong>Price</strong></font></font></font></td>
        <td align="center" valign="middle" bgcolor="#cccc99" width="58"></td>
      </tr>
      <tr>
        <td align="center" valign="middle" width="55"><font size="1"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" color="black"><strong>#9745</strong></font></font></td>
        <td align="center" valign="middle"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Set-Up Block for round over matched rail &amp; stile  bits</font></td>
        <td align="center" valign="middle" width="55"><font size="1"><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" color="black"><strong>$9.95</strong></font></font></td>
        <td align="center" valign="middle" width="58"><a href="http://www.mlcswoodworking.com/cgi-mlcswoodworking/sb/order.cgi?storeid=*16f8a8beab2fd058071ebc4eb5&amp;dbname=products&amp;sku=%239745&amp;function=add"><font size="2"><img src="../graphics/orderbut.gif" alt="" width="58" height="17" border="0" /></font></a></td>
      </tr>
    </table>
    <script type="text/javascript">
    var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel3pcset", {contentIsOpen:false});
    </script>
    </body>
    </html>
    To help you any further would take me way outside the scope of this forum, but if you were to employ me to untangle the mess, I would start afresh.
    Gramps

Maybe you are looking for

  • Is there any way to merge 2 video layers to one without exporting?

    Is there any way to merge 2 video layers into one without exporting as a new QuickTime movie? I have tried opening a blank player to copy and paste into, but it always forces it to be layered, even when I change the layer numbers both to zero. I trie

  • How to clear tab settings in Designer in 7.0

    I imported an existing form and added text fields/drop downs, etc. I used copy/paste throughout. When I went to set tab order there are in some cases 3 or 4 numbers beside a single field and even straight text fields are numbered. I can't figure out

  • No display on projector

    I have a sony vaio laptop. I have installed Windows Server 2012 R2 on it but while connecting to projector , it doesn't show anything. I also have windows 7 on the same pc but windows 7 connects well with projector. Please suggest something. What cou

  • How can I overcome downloading issues to start using software?

    I have an Apple Mac using MountainLion and downloaded Adobe Photoshop elements 10 and Adobe Premiere Elements 10. I have tried downloading using both methods suggested. I seem to have the software downloaded, but can't use it. The first method sugges

  • Can't Add Photos Edited in PS

    I did some editing of photos in PS CS and saved as JPG's but when I try to import them into iPhoto, I get the 'file type not recognized' error. Whats the deal?