Page 1 of 1

how to open and close panel using javascript code??

Posted: Wed Mar 12, 2014 12:58 pm
by pritu patel

I am trying to open panel on image click and i want to write javascript code to open and close panel.
Appery("panel").show(); but it not working.
what is the solution for this?


how to open and close panel using javascript code??

Posted: Wed Mar 12, 2014 1:32 pm
by Maryna Brodina

Hello!

1) You can use action on click event
2) or use JS preAppery("panelName").panel("open");
Appery("panelName").panel("close");/pre


how to open and close panel using javascript code??

Posted: Wed Mar 26, 2014 1:42 am
by Case

How about if I'm on one page and I want user to click button which navigates to a different page AND opens a panel on that page? I can't just use events because the page with button does not contain the panel I want to open.


how to open and close panel using javascript code??

Posted: Wed Mar 26, 2014 1:48 am
by Case

Whoops, my bad - it's as easy as using the event to navigate to page and then the above javascript as the second event in a list.


how to open and close panel using javascript code??

Posted: Wed Mar 26, 2014 1:53 am
by Alena Prykhodko

Hello Case,

You can open Panel on the second page, on Load event run JS:
preAppery("panelName").panel("open");/pre