I have created a list in jquery mobile which directs to some page on click. it is working fine in android emulator. But showing some strange behavior in android phone's default browser. When i am clicking on list's item it directs me to another page but redirects back automatically. The URL in the browser remains the page to which list directs the user but the content remains the same as of previous page.
我已经在jquery mobile中创建了一个列表,该列表在点击时指向某个页面。它在android模拟器中工作正常。但在Android手机的默认浏览器中显示一些奇怪的行为。当我点击列表的项目时,它会将我引导到另一个页面,但会自动重定向。浏览器中的URL仍然是列表指向用户的页面,但内容保持与上一页相同。
Please, somebody response. I am really stuck on this.
请有人回复。我真的被困在这上面了。
You can see the same problem in jquerymobile demo: http://jquerymobile.com/test/docs/pages/index.html
您可以在jquerymobile演示中看到相同的问题:http://jquerymobile.com/test/docs/pages/index.html
I am opening this page in android-2.3 (tried in HTC and Samsung) , on clicking on list's item it directs me to another page but redirects back automatically. It doesn't happen always, but most of the times when clicking on list items.
我在android-2.3(在HTC和三星中试过)打开这个页面,点击列表的项目它会将我引导到另一个页面,但会自动重定向。它并不总是发生,但大多数时候点击列表项。
1 个解决方案
#1
1
我的答案见: - http://forum.jquery.com/topic/jquery-mobile-true-browser-back-button-issue
Just you have to do following:-
只需要做以下事项: -
$.extend( $.mobile , {
hashListeningEnabled: false
});