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 at http://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 <t.bro...@gmail.com> wrote:
> On 15 avr, 21:21, davidroe <roe.da...@gmail.com> 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 Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to