Hello moderator,

I submitted this post the other day as I am a new user this never did make
it the forum. Not sure if it was overlooked.

Thanks

---------- Forwarded message ----------
From: fark <ffej.sak...@gmail.com>
Date: Tue, Feb 2, 2010 at 4:09 PM
Subject: GWT 2.0 internet explorer 7 devmode issue?
To: Google Web Toolkit <google-web-toolkit@googlegroups.com>


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) {
           o...@com.snapon.client.test2::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 google-web-tool...@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