Closed ryankscott closed 11 years ago
Uhm, everything seems fine with this setup.
However, the router can't transition to a page by himself, there must be something that triggers the page change event. Do you use a $.mobile.changePage or window.location.hash="something" somewhere in your code? Is there a chance that knockout does this by his own?
You can try disabling the allowSamePageTransition logic on line 70:
data.options.allowSamePageTransition = false;
Under some rare circumstances, this setting may lead to strange jQM behaviors during transitions.
Can you send me a demo to properly debug the whole thing? Thanks
Hi there,
Thanks for verifying that it's not something obvious in the router. I will mail you an example copy of the code.
Thanks
Closing this one. Calling $.mobile.changePage() multiple times, then using $.mobile.back() makes jQuery Mobile act crazy
I am having issues with the JQM router occasionally transitioning to pages without a $.mobile.changePage() call or a link being clicked.
What I am expecting is a sequence of page transitions like this:
Page 1 (#Topics) -> Page 2 (#EditTopic) -> Page 3 (#Home)
However, this is what ends up happening:
Page 1 (#Topics) -> Page 2 (#EditTopic) -> Page 3 (#Home) -> Page 2 (#EditTopic)
This final, incorrect page transition doesn't happen on the first occasion, but will repeat on any subsequent calls. I'm not sure how to debug this or what logs I could send, but I'll attach my router variable to see if there is anything obvious there.
Please excuse my horrible coding style, still learning.