I just tried this and it doesn't work, same problem. I had already tried a similar thing but the JSNI was implemented in GWT code, same problem anyway :)
I tried to put a javaScript file with basic code on tomcat and it succed. So the problem doesn't come from the way i load the script. I think the problem comes from the maps' javascript combined with dynamic load from GWT. From the javaScript i try to load, there is other call to scripts, maybe it's a problem... I think there's a mechanism that i'm not aware. On Aug 12, 11:18 am, cokol <eplisc...@googlemail.com> wrote: > maybe you make a change to a DOM node what GWT is aware of and > therefore triggers module unload? > try following function (ready to use) define the function inside JSP > > <script> > function loadJS(url){ > var loaderNode = document.createElement("script"); > loaderNode.setAttribute("id","____ffxep"); > loaderNode.setAttribute("type","text/javascript"); > (document.getElementsByTagName("head")[0]).appendChild(loaderNode); > loaderNode.setAttribute("src",url);} > > </script> > > and put invoker to your GWT class: > > public native void loadJS(String url)/*-{ > $wnd.loadJS(url); > > }-*/; > > ensure you have the HEAD tag in your html, and give it a try > > it has to work... > > On 12 Aug., 11:01, Vincent COROLLEUR <vcoroll...@gmail.com> wrote: > > > But even if try to load only one map dynamically, it bugs. > > > It works only by the static way for the moment (script tag in > > index.jsp) -- 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.