Christian
Posts: 0
Joined: Fri Jul 19, 2013 10:07 am

Sliding menu Panels

Hello,
sorry when i reply to this topic. I got a problem after creating the slide panel. The panel with the button is working very well. But when i got a Button in the side panel, then i could not trigger a appery event on this. I created a event with Button - Clicked - Navigate to Page.
But when i click on the button in the testing, the button does nothing. Is there anything special to do, to use Appery.navigateto in the objects in this side panel?
Attached is a screenshot, of what button i'm writing.
When there is more information needed, let me know. This is my first post.

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Sliding menu Panels

Hello! Is there any error in console when you click button?

Kapow36
Posts: 0
Joined: Thu May 23, 2013 4:07 pm

Sliding menu Panels

Christian, if you take a look at the code I posted, you need to add button events on page load and not with the built in appery ui.

Michael Johnson
Posts: 0
Joined: Thu Mar 28, 2013 6:30 pm

Sliding menu Panels

I noticed this as well -- my event handlers are dropped when I move my nav into the panel. I ended up just putting them in a .js file as code$(mynav).live('click', ...)/code handlers, but it would be nice to specify them normally in the Appery editor. Going to do some testing on this and see if I can find out why. jQuery code.appendTo/code is supposed to retain event handlers, so I wonder if the jQuery UI initialization in code$('mynav').panel();/code is somehow killing the bound handlers?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Sliding menu Panels

Hi Michael,

This should be helpful: https://getsatisfaction.com/apperyio/...

Michael Johnson
Posts: 0
Joined: Thu Mar 28, 2013 6:30 pm

Sliding menu Panels

Very nifty code -- plucks out all the defined events then puts them back. I might use that once my nav panel starts to get a little more complex (right now it just has a handful of entries, so easier to set up .live() handlers by ID).

Return to “Issues”