Results 1 to 5 of 5

Thread: DD Drop Down Panel help

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

    Default DD Drop Down Panel help

    1) Script Title: DD Drop Down Panel

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pdownpanel.htm

    3) Describe problem: When i toggle the button the content panel opens, and when i click some link in it i go to that link, but when i press back the panel is closed, how to stay open until i press the button to close(using google chrome)?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Simply set the option in red to false:

    Code:
    var defaultpanel=new ddpanel({
    ids: ["mypanel", "mypanelcontent", "mypaneltab"], // id of main panel DIV, content DIV, and tab DIV
    stateconfig: {initial: "5px", persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
    animate: {enabled: true, steps: 5}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
    pointerimage: {enabled: true, src: ["arrow-down.gif", "arrow-up.gif"]},
    closepanelonclick: {enabled: false} // close panel when links or elements with CSS class="closepanel" within container is clicked on?
    })
    DD Admin

  3. #3
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well i did go over the script before i post the question and i found that, but the thing is i cant make it to work in google chrome(ie, safari and firefox works). Thanks anyway for your reply.

  4. #4
    Join Date
    Jan 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So is there noone who cant make this work in chrome ???

  5. #5
    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

    You would need to also have persistence enabled:

    Code:
    var defaultpanel=new ddpanel({
    ids: ["mypanel", "mypanelcontent", "mypaneltab"], // id of main panel DIV, content DIV, and tab DIV
    stateconfig: {initial: "5px", persiststate: true}, // initial: initial reveal amount in pixels (ie: 5px)
    animate: {enabled: true, steps: 5}, //steps: number of animation steps. Int between 1-20. Smaller=faster.
    pointerimage: {enabled: true, src: ["arrow-down.gif", "arrow-up.gif"]},
    closepanelonclick: {enabled: false} // close panel when links or elements with CSS class="closepanel" within container is clicked on?
    })
    And, if you're only testing locally, Chrome will not respect even that. You must put your test page up live* and make sure it's still not working in Chrome. Also make sure cookies are enabled in Chrome. If at that point you want more help:

    Please post a link to the page on your site that contains the problematic code so we can check it out.


    *I just tested this, the page must be live for this feature to work in Chrome.
    Last edited by jscheuer1; 01-20-2012 at 02:34 PM. Reason: add - I just tested this, th . . .
    - John
    ________________________

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

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
  •