PDA

View Full Version : ddaccordion main header in Chrome always collapse



chang
09-11-2012, 05:50 PM
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

jscheuer1
09-11-2012, 07:14 PM
If you're relying upon:



persiststate: true, //persist state of opened contents within browser session?

That won't work in Chrome unless the page is live.