Hello All
I've been banging my head against the wall on this. I'm trying to NOT use the ajax handling for page linking. My links have been using data-ajax="false" but if I include a history.back() onclick call and then navigate to a page after the go back, I see the ajax transition and it usually defaults to the wrong page.
To clarify
on Page 1
click to Page 2
while on Page 2, I Click Go back which takes me back to Page 1
click back to Page 2
after Page 2 loads, I see a ajax spinner which takes me back to Page 1 or other 'random' page in my app.
I've isolated this behavior to the go back functionality. If I move through the application without clicking any go back, everything appears to be working fine.
Here is an example of my Go Back link
- <li><a href="#" data-theme="b" rel="external" data-ajax="false" onclick="goBack();">Go Back</a></li>
I've tried the following
- <li><a href="javascript:history.back();" data-theme="b" rel="external" data-ajax="false">Go Back</a></li>
- <li><a href="#" data-theme="b" rel="external" data-ajax="false" onclick="history.back();">Go Back</a></li>
- <li><a href="#" data-theme="b" rel="external" data-ajax="false" onclick="history.back(); return false;">Go Back</a></li>
- <li><a href="javascript:history.back();" data-theme="b" rel="external" data-ajax="false">Go Back</a></li>
- <li><a href="#" data-theme="b" rel="external" data-ajax="false" data-rel="back">Go Back</a></li>
- <li><a href="javascript:history.back();" data-theme="b" rel="external" data-ajax="false" data-direction="reverse">Go Back</a></li>
All of the above produces the 'Loading' ajax dialog. I'm hoping there is a way to get around this.
I'm currently using jquery-1.6.4.min.js and jquery.mobile-1.0b3.min.js and testing with a AndroidX version 2.3.3
Thanks!
hanji