Thanks Ian,
I have actually coded with the History() class, I think I must
have done something wrong, because, every time I refresh the page it
still take me back to the first page that it loads onModuleLoad. I
guess my history is getting set back to the first token.
Freeze
You need to design your app for this.
* You need to assign something as a history listener (or handler in 1.6)
* When the listener/handler gets a call, it sets the site up with the
correct page (or a default if the token is blank or invalid)
* When you want to display a 'page', you create a
Hello,
I'm trying to navigate from one HTML page to another when a button
is clicked on the first. I have a button listener added and it's
inside a panel. Now when I click the button, I want to load a new
page.
I do not want to use
code
RootPanle.get().add(new Page1);
.
.
when
You *do* need to do it like that.
But you also need to write out a history record when you display a page.
In the onModuleLoad, you check the history token and display whichever page
the history token tells you to load.
Have a look at the History() class
Ian
http://examples.roughian.com