Wednesday, April 15, 2015

Re: pushstate - having trouble updating url without reloading page

Jens,

I appreciate your quick reply, I am just getting around to trying your suggestion and unfortunately it is still reloading the page and going to a new place causing my UI to be rebuilt and the screen to flash which is undesirable. Thanks though.

Best,
Will

On Friday, April 10, 2015 at 1:57:17 PM UTC-4, Jens wrote:
In GWT source the pageUrl is created using

String pageUrl = link == null ? null : link.<String>prop("pathname");

and I would bet that its the same as calling window.location.pathname. In that case pathname always returns an absolute path starting with "/". So the GWT source would probably return a pageUrl that looks like "/?gwt.codesvr=127.0.0.1:9997#StandardView:parameter1&viewType=SomeSubView".

That's literally the only difference I see so you should try changing your code to 

String pageUrl = "/#StandardView:parameter1&viewType="+subView;


Maybe that helps to convince the other browsers :)


-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment