Project

General

Profile

how-to process "Go back one page" and "Go forward one page"

Added by Sergey Bryukov about 14 years ago

Hello!

Is there method to catch browser buttons signal "back" and "forward"?

Do I understand right, it is not possible to return to the previews screen and update dynamic context?

Thanks.


Replies (1)

RE: how-to process "Go back one page" and "Go forward one page" - Added by Wim Dumon about 14 years ago

Hello Sergey,

'Back' and 'Forward' are well handled by Wt; if you surf to www.webtoolkit.eu you can experience it yourself. This feature is also connected to bookmarkability and search engine friendlyness of application.

Therefore, you need to use the 'internal path API' of Wt to implement navigation with forward buttons, back buttons and browser bookmarks. The most elaborated example of the internal path API is currently probably in WMenu.C, a file that is located in wt/src/Wt/ in our source distribution package. The internal path API will signal your application every time the URL is changed by the user (typically caused by pressing back or forward, or by going a bookmark).

See also the reference documentation: all functions in WApplication containing 'internal' in their name, WAnchor, WMenu, ...

Regards,

Wim.

    (1-1/1)