PDA

View Full Version : Accordion Content script



webrebel
07-27-2008, 08:17 PM
1) Script Title: Accordion Content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm

3) Describe problem: Client, when maximizing browser windows (IE) the script stays at the the original place. Mine doesn't do it. PleASE HELP He's driving me nuts resizing his windows and the script doesn't resize properly! Thanks, Mike

ddadmin
07-28-2008, 05:25 AM
Hmm you'll need to clarify. Are you talking about the "Accordion Content script", or its derivative, "Accordion Menu script"? Your script title and link contradict one another.


Client, when maximizing browser windows (IE) the script stays at the the original place.

Since the Accordion script simply acts on regular DIVs on the page, I don't see how maximizing the browser should or would change the DIVs position, unless we're talking about a customization causing the contents to be absolutely positioned for example. Please post a link to the page on your site that contains the problematic script so we can check it out.

webrebel
07-28-2008, 11:54 AM
Thanks for the reply! This is the exact script url:
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm

Here is the site I'm using it on:
http://www.mykentuckyheart.com/index.htm

Also, I should mention once he refreshes the page it goes back to the correct place.

webrebel
07-28-2008, 01:18 PM
I guess while I'm at it, the menu returns to the original state when you open a page. How do I make the menu stay expanded to the point I am at? For instance, when clicking heading Medical Information/Heart Defects/Aortitic Stenosis, the menu returns to the original state. I would like it to stay open at this level. I tried setting persiststate: false and true. True just opens the expanded level the second time you load it. False immediately returns to original state each time. I don't think we shoud have to drill down the menu every time I load a page?

ddadmin
07-28-2008, 11:37 PM
In IE7 WinXP, going to the page in question (http://www.mykentuckyheart.com/index.htm) and maximizing the window, the menu stays relative to the new page layout as expected. What does your client mean exactly when he says "it stays in the same place", and what's his browser/OS configuration?


How do I make the menu stay expanded to the point I am at? For instance, when clicking heading Medical Information/Heart Defects/Aortitic Stenosis, the menu returns to the original state. I would like it to stay open at this level.

The persistence feature only remembers a header's setting when you click on the header itself, not its sub menu contents. That's because technically, the later is simply an arbitrary DIV that the header just happens to expand/contract, with their relationship ending there.

If you wish clicking on any one of the sub menu links to cause their "associated" header to remain open on the target page, you can edit the links' URLs to take advantage of the feature "Remote links that expand select headers on the target page (http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm)" mentioned. In other words, your link would look something like:


<a href="target.htm?headerclass=index1,index2,etc">Target Page</a>

webrebel
07-29-2008, 01:02 AM
In IE7 WinXP, going to the page in question (http://www.mykentuckyheart.com/index.htm) and maximizing the window, the menu stays relative to the new page layout as expected. What does your client mean exactly when he says "it stays in the same place", and what's his browser/OS configuration?

I've seen it on 3 of his machines, granted they probably all need updating. I'll have to check and see what exactly they are running. Like I said I'm running the same as you and don't see the problem on mine either.

As far as keeping the menu open, I'll have to study this. There's like 70-80 links in the menu, not sure how much work this is gonna be....