Results 1 to 2 of 2

Thread: ddaccordion main header in Chrome always collapse

  1. #1
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ddaccordion main header in Chrome always collapse

    1) Script Title:

    2) Script URL (on DD):

    3) Describe problem:

    I uses Tompcat 7, Spring MVC, JSP, MySQL, tile, Jquery.
    Left side menu of tile has ddaccordion function.
    They are ok in FF, Safari, and IE.
    However, the main header always collapsed after I selected one sub menu or item on Chrome.
    It is first time to post.
    I hope someone knows this issue.

    It is the codes:
    ddaccordion.init({
    headerclass: "expandable", //Shared CSS class name of headers group that are expandable
    contentclass: "categoryitems", //Shared CSS class name of contents group
    //revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover" collapseprev: false, //Collapse previous content (so only one open at any time)? true/false
    defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
    animatedefault: false, //Should contents open by default be animated into view?
    persiststate: true, //persist state of opened contents within browser session?
    toggleclass: ["closeheader1", "openheader1"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
    //onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
    togglehtml: ["prefix", "<img src='./js/images/0609_f.gif' class='statusicon' />", "<img src='./js/images/0609_uf.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
    animatespeed: "normal" //speed of animation: "fast", "normal", or "slow"
    })

    Thanks,
    Chang

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you're relying upon:

    Code:
    persiststate: true, //persist state of opened contents within browser session?
    That won't work in Chrome unless the page is live.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. On scroll header collapse to smaller sticky header
    By danielmeade in forum JavaScript
    Replies: 3
    Last Post: 07-17-2011, 12:28 PM
  2. Replies: 1
    Last Post: 08-11-2010, 11:10 PM
  3. ddaccordion menu header images
    By FishTank in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-10-2010, 05:16 PM
  4. DDAccordion Ver 1.3... How to collapse on mouse over
    By smpil in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 09-09-2009, 08:15 AM
  5. nested ddaccordion won't collapse subexpandable and expandable
    By studio-18 in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 06-16-2009, 10:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •