It appears to be a pretty old issue that hasn't received much
attention (maybe because IE6 should rot in hell and there's no way
around it). Anyway, here's the link to the issue if you want to star
it or comment on it:
http://code.google.com/p/google-web-toolkit/issues/detail?id=1730

Cheers,

Salvador

On Apr 16, 10:13 pm, davidroe <[email protected]> wrote:
> how can this be a security thing? is it also a security thing that,
> when IE can't actually load a page because the network connection is
> inactive, it silently hands back the old page from cache? my point is
> that calling it "security" is laughable and after a few days working
> with IE, I am ready to throw this HP laptop far, far away.
>
> I had already taken the approach of changing all such links into a
> clickable widget that traps the click but I posted this problem
> because I am still trying to understand the behaviour. I have another
> issue relating to history tokens but thought that this was a simpler
> way of presenting what seems to be the same problem.
>
> my other issue seems to be this: if I arrive athttp://sitename.com/#token1
> and I change the token using History.newItem("token2"), this time
> without responding to a link click, but rather performing this
> programmatically before the user interacts in any way, I see the same
> page reloading problem under IE (and not other browsers). I am still
> yet to confirm that this is 100% accurate or whether something else is
> causing the behaviour. of course, IE may be leading me on the
> proverbial by not reporting an error.
>
> On Apr 16, 2:22 am, Thomas Broyer <[email protected]> wrote:
>
> > On 15 avr, 21:21, davidroe <[email protected]> wrote:
>
> > > usual problem with IE6 not behaving like any other browser. this one
> > > is relatively blatant. I have included the code to a new project
> > > created in 1.4 that has a history listener and not much else.
>
> > > if I click on the link, which sets the history token to #link1, the
> > > page reloads and onModuleLoad is called
> > > if I click on the button, which calls History.newItem("link2"),
> > > everything works as expected and onHistoryChanged is called.
>
> > > is there anything I can do to prevent IE6 reloading the entire page?
>
> > Hook a ClickListener in the link an call History.newItem from it.
> > That's what the Hyperlink widget does FWIW.
>
> > > ----------------------------- 8< -----------------------------
>
> > > package com.mypackage.client;
>
> > > import com.google.gwt.core.client.EntryPoint;
> > > import com.google.gwt.user.client.History;
> > > import com.google.gwt.user.client.HistoryListener;
> > > import com.google.gwt.user.client.Window;
> > > import com.google.gwt.user.client.ui.Button;
> > > import com.google.gwt.user.client.ui.ClickListener;
> > > import com.google.gwt.user.client.ui.HTML;
> > > import com.google.gwt.user.client.ui.RootPanel;
> > > import com.google.gwt.user.client.ui.Widget;
>
> > > public class IETest2 implements EntryPoint, HistoryListener {
>
> > >         public void onModuleLoad() {
>
> > >                 Window.alert("onModuleLoad");
>
> > >                 HTML h1 = new HTML("<a href=\"#link1\">link1</a>",true);
> > >                 Button b2 = new Button("link2");
> > >                 b2.addClickListener(new ClickListener() {
> > >                         public void onClick(Widget sender) {
> > >                                 History.newItem("link2");
> > >                         }
> > >                 });
>
> > >                 History.addHistoryListener(this);
> > >                 RootPanel.get("slot1").add(h1);
> > >                 RootPanel.get("slot2").add(b2);
>
> > >         }
>
> > >         public void onHistoryChanged(String token) {
> > >                 Window.alert("onHistoryChanged");
> > >         }
>
> > > }
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to