Results 1 to 3 of 3

Thread: Trigger drop down panel from flash

  1. #1
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Trigger drop down panel from flash

    1) Script Title: DD Drop Down Panel

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

    3) Describe problem:

    Hi All,

    I am using this drop down panel on my page and I want to trigger it from within a flash file that is above the panel on the page.

    I'm using the following command in the flash file but i'm not sure what the default panelinstance name is. Can anyone suggest anything?

    Code:
    on(press) {
    	getURL("javascript:panelinstance.togglepanelplus())");
    }
    thanks
    Last edited by Snookerman; 07-31-2009 at 07:01 AM.

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

    Default

    There is no default panelinstance variable in that it's user assigned when you first initialized the panel in question. For example:

    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: true} // close panel when links or elements with CSS class="closepanel" within container is clicked on?
    })
    The variable in red would be this particular panel's panelinstance variable.
    DD Admin

  3. #3
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Thanks so much! It now works perfectly

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
  •