Page 3 of 3

Sliding menu Panels

Posted: Fri Jul 19, 2013 10:07 am
by Christian

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


Sliding menu Panels

Posted: Fri Jul 19, 2013 10:09 am
by Maryna Brodina

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


Sliding menu Panels

Posted: Fri Jul 19, 2013 1:18 pm
by Kapow36

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.


Sliding menu Panels

Posted: Fri Jul 19, 2013 1:53 pm
by Michael Johnson

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?


Sliding menu Panels

Posted: Fri Jul 19, 2013 2:59 pm
by Kateryna Grynko

Hi Michael,

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


Sliding menu Panels

Posted: Fri Jul 19, 2013 4:14 pm
by Michael Johnson

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