CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   jQuery Drop Down Panel question (http://www.codingforums.com/showthread.php?t=137535)

YesButNo 04-14-2008 04:43 PM

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 :)

WA 04-14-2008 07:47 PM

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>

YesButNo 04-14-2008 09:44 PM

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

Baby steps...

kavi 07-23-2008 08:24 AM

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


All times are GMT +1. The time now is 02:46 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.