Hi Thomas.

Thanks a lot for the information.
So, I did what you adviced me i.e. adding the linker option in the
module.
As you suspected, it does not generate a nocache.js with the xs suffix
but the usual file with the right
version.

However, trying to load my module, I get the following message from
jetty :

Cross-site hosted mode not yet implemented. See issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=2079

So, as far as I understood, there is a problem only with hosted mode,
but it should be ok once deployed.
So, I deployed everything on google app engine and try to load the
script from a different page.

I tried two ways but only one worked. So, if I simply add the
following line anywhere in the code :

    <script type="text/javascript" language="javascript" src="http://
domain.appspot.com/module/module.nocache.js"></script>

everything works fine.

But if I try to include the script as following :

<script type="text/javascript">
                var url = "http://domain.appspot.com/module/module.nocache.js";;
                var script = document.createElement("script");
                script.setAttribute("src", url);
                script.setAttribute("type", "text/javascript");
                document.getElementsByTagName("head")[0].appendChild(script);

</script>

It does not work properly. From the firefox error console, I have the
following error

   Error: __gwt_stylesLoaded is not defined


Anyway, I guess the first method is the one recommended and easier to
use.
Or maybe shall I raised an issue on that ?

Regards.
Olivier.

--

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


Reply via email to