Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh jQuery Drop Down Panel question

    I'm very new to jQuery, just learning through playing with it, so please assume I'm a complete noob.

    I am interested in implementing the Drop Down Panel script:

    http://www.javascriptkit.com/script/...ownpanel.shtml

    but I want to trigger the panel to drop down via a link embedded on the page rather than via the tab (in fact, I plan to eliminate the tab altogether - but I worked that out on my own). Can someone point me in the direction of where/how I can learn how to do the call via a link?

    Not being lazy - I did spend about 6 hours yesterday trying to figure it out but no luck

  • #2
    WA
    WA is offline
    Administrator
    Join Date
    Mar 2002
    Posts
    2,596
    Thanks
    2
    Thanked 19 Times in 18 Posts
    Sure, you can directly call the code:

    Code:
    jkpanel.$mainpanel.click()
    to open/close the panel. Using a link then, it'd look something like:

    Code:
    <a href="#" onClick="jkpanel.$mainpanel.click(); return false">Open/ Close panel</a>
    - George
    - JavaScript Kit- JavaScript tutorials and 400+ scripts!
    - JavaScript Reference- JavaScript reference you can relate to.

  • #3
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thankyou!

    Perfect, thanks George, just what I needed. I got close to that, but not quite

    Baby steps...

  • #4
    New to the CF scene
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dear Admin
    I m trying to figure out the dropdown panel but i like to use two tabs in the panelcontent.htm. The issue is, if i clicked any place the panel become close. May i know is there any solution for this. Please help me out.

    Thanks
    Kavi


  •  

    Posting Permissions

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