Pass parameter to GWT bootstrap .nocache.js script

Is there any way to pass parameters to the .nocache.js script file generated by GWT and evaluate them in the onModuleLoad function? Like so:

<script type="text/javascript" src="application/Application.nocache.js?appId=461333815262909"></script>

The host page URL should be completely separated from the GWT stuff working inside, so passing the appId parameter as a query parameter for the host page and accessing it with Window.Location.getParameter is not an option. I know that I could hide such parameters e.g. in hidden DIVs and then query them from the script, but if it's possible, I'd love to avoid any further dependency in the host page.

Thanks! Лиза

5
задан Lisa 4 December 2010 в 00:14
поделиться