开发者

Back and Forward buttons

开发者 https://www.devze.com 2023-03-15 06:44 出处:网络
开发者_开发知识库Back and Forward buttons are disabled in Chrome in my GWT project, i consider it as a weird behavior. From the browser point of view, i m not talking about gwt History.
开发者_开发知识库

Back and Forward buttons are disabled in Chrome in my GWT project, i consider it as a weird behavior. From the browser point of view, i m not talking about gwt History. Just when i run my gwt project then back and forward buttons are disabled, any ideas ? If i first implement gwt History, then should they work for me? Thanks


Back and forward buttons are disabled when there is no history. When you open a GWT app in a new tab/window it will have no history so back and forward buttons will be disabled.

Since GWT is pure JS and it does not reload the page (i.e. it runs within one page), history will not be changed even if you navigate UI in your GWT app.

To have history support in GWT you need to explicitly enable it: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html


  1. Check that the HTML(/XML/XHTML/whatever..) pumped out by GWT is valid according to the spec. If not, it is pretty much guess-work as to how an UA (browser) will parse it.
0

精彩评论

暂无评论...
验证码 换一张
取 消