Page 1 of 3
Panel display issue with back button
Posted: Mon Dec 30, 2013 11:17 pm
by Cody Blue
I have created a main page with a panel menu that appears when a button on the page is clicked.
(Examples of Panels: http://demos.jquerymobile.com/1.3.0-b...)
When one of the options (listItems) in the panel is clicked the application navigates to a second page which has a back button (that Appery provides).
On clicking the back button the main page (with the menu panel) appears correctly but the panel no longer shows up when the menu button on that is clicked.
Now, when I manually refresh this main page in the browser the panel begins to work fine.
Could you suggest how may I go about fixing this?
Panel display issue with back button
Posted: Mon Dec 30, 2013 11:25 pm
by maxkatz
The back button is not Appery.io button. It's a standard jQuery Mobile back button (feature) that goes back one page in history. Pretty much everything in Appery.io is standard jQuery/jQuery Mobile stuff.
When you navigate back to the page, you can remember if the panel was open or not. If not, open it.
We are adding the Panel component to the palette in January.
Panel display issue with back button
Posted: Mon Dec 30, 2013 11:49 pm
by Cody Blue
I understand that. Good you guys are considering addition of the component in Appery.
I don't need the panel to remain open. I simply want the panel to open up when the corresponding button is pressed on main page, after the back operation is completed.
Currently the behavior is erroneous (ie after back operation the panel does now show on press of corresponding button). I cannot find anything wrong with my implementation.
Panel display issue with back button
Posted: Tue Dec 31, 2013 12:14 am
by maxkatz
I'd first check if there are any errors in the console when you click on the panel after navigation.
Panel display issue with back button
Posted: Tue Dec 31, 2013 12:41 am
by Cody Blue
Actually there aren't any. Attached is the console log (which remains same whether or not panel is invoked).
Panel display issue with back button
Posted: Tue Dec 31, 2013 5:29 am
by maxkatz
Can you share the app link so we can try it?
Panel display issue with back button
Posted: Tue Dec 31, 2013 5:08 pm
by Cody Blue
Sure, I have shared the project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a. You would just need to run a test and click on top left menu button in the header which will open the panel, and choose View on Map option, and then press the back button. The menu panel will no longer work.
Panel display issue with back button
Posted: Tue Dec 31, 2013 9:00 pm
by maxkatz
What's the app name? Or, you can just share the public app link here.
Panel display issue with back button
Posted: Tue Dec 31, 2013 11:43 pm
by Cody Blue
Panel display issue with back button
Posted: Wed Jan 01, 2014 12:02 am
by maxkatz
What are the exact steps reproduce the issue?
Here is what I did and it seems to work:
- Clicked on More icon, menu opened
- Clicked on an item, another page opened
- Clicked Back button (in header)
- Ended up on the page with menu opened.