Hi Adam, Your site does what mine does, i.e you end up with two history entries, one for / and one for /#intro.
I'm trying to avoid that so that if the user clicks the back button, they go back to where they came from, not back to the page without the bookmark (which in my case will redisplay the page with the bookmark), so I use 'replace', but it doesn't work in Chrome, Safari, or Opera (on Windows, anyway). Ian http://examples.roughian.com 2009/3/29 Adam T <[email protected]> > > Well, I'm not really sure what your doing, so it may not help - I was > just guessing if you were trying to put #Home at the end of a url you > might be trying to plug into GWT's History system. > > On this page http://gwtfx.adamtacy.com/EffectsExample.html I do that > to manage tabs whose content is sucked in from original html, ie. the > first thing I want to do is to use GWT to get the user from > EffectsExample.html to EffectsExample.html#intro and so do the > following: > > String token = History.getToken(); > if (token.length() != 0) { > onHistoryChanged(token); > } else { > History.newItem(HIS_INTRO, true); > } > > (where HIS_INTRO is the constant for "intro"). > > If you're not trying to hook into gwt's history then it's probably not > much use. > > //Adam > > On 29 Mar, 13:12, Ian Bambury <[email protected]> wrote: > > Thanks for the reply, Adam > > > > > If you're using it for GWT history, you could alternatively set #Home > > > as the token when you initialise that subsystem..... > > > > Could you explain how this would help? > > > > Thanks, > > > > Ian > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
