Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listview back button failing after a http post changePage call #3

Open
johanngranados opened this issue Oct 3, 2012 · 1 comment
Open

Comments

@johanngranados
Copy link

Hi,

We are using the asyraf9 / jquerymobile-splitview in our application. At the left side panel we have a jqm listview. At the right panel we are displaying some details about the items located at the left panel listview. We also have some buttons at the right panel which performs some actions on the item displayed at the right panel. Those buttons trigger some java script actions where we call some pages (there are actually ASP.NET MVC action url's) by using the "http post" method. The thing is that those "post" callPage invokations broke the listview "back" button functionality (you have to click the back button twice to go the listview previous level)

Any idea about what may be going wrong?

Thanks in advance for your help!

@jkrehm
Copy link
Contributor

jkrehm commented Oct 3, 2012

Are you making the post call via ajax? If not - and without seeing any code - I'm going to bet that it's putting the call into the page's history, so even though you may not be seeing anything change when you hit the back button twice, it's actually paging through the history. I haven't used it, but I believe there's a setting in the splitview code that lets you tell it to ignore the next hash change. Take a look in the code to see how that works.

Hopefully that'll help point your toward the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants