Hello,
It is possible to dynamically load GWT javascript after the hosting
html page loads?
What I mean is, I don't want to include GWT script in my hosting HTML
page. Instead, later at the click of a button would like to include
the GWT script dynamically and load the application generated by GWT.
Something like:
<button onclick="loadApp()">Load App</button>
and in the script:
function loadApp() {
var gwtScript = document.createElement('script');
gwtScript.type = 'text/javascript';
gwtScript.src = 'app/app.nocache.js';
document.getElementsByTagName('head')[0].appendChild(gwtScript);
}
Currently this doesn't seem to work because app.nocache.js in-turn
executes document.write() which doesn't work after the page finishes
loading.
Can someone suggest me a solution to this?
Regards
Jayarama Nettar
--
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.