I'm having difficulties with ie7 devmode on windows xp and gwt 2.0.
Basically if I click a link in ie while running the app, the url is
replaced and the application reloads if there are history tokens.

A simple test showing the url modification (note this does not reload
the app as there are no tokens, but does show the url modification I
am seeing) . Create a generic test application using eclipse gwt
plugin and add this code to onModuleLoad()

                StringBuilder htmlString = new StringBuilder(
                                "<ul id='breadcrumb'>"
                                                + "<li><a href='#' 
onclick='javascript:navigateTo(\"HOME
\");return false;'>"
                                                + "HOME"
                                                + "</a></li></ul>");

                RootPanel.get().add(new HTML(htmlString.toString()));
                initJs(this);

add these two functions:

        private native void initJs(Object obj) /*-{
        $wnd.navigateTo = function (param) {
            [email protected]::navigateTo(Ljava/lang/
String;)(param);
         };
        }-*/;

        public void navigateTo(String levelId) {
                GWT.log("javascript returned level: " + levelId,null);
        }



Start devmode, in my case the original url is "http://localhost:8888/
Test2.html?gwt.codesvr=192.168.254.110:9997"
Now if I click on the link which should only execute the javascript
the new link is "http://localhost:8888/Test2.html?
gwt.codesvr=192.168.254.110:9997#" with a pound at the end.

Note: this behavior does not happen in devmode with chrome or firefox
and also does not occur in internet explorer if I compile the code

 Has anyone else seen this issue and found a workaround? Or is this
possibly an internet explorer devmode bug?

Thanks

-- 
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