I have some external Javascript files in my GWT app that I only want
to download when the user accesses the section that requires them.
I included the JS files in a UiBinder page like this:
<g:HTMLPanel>
<script src="blah.js"/>
</g:HTMLPanel>
The files won't necessarily be downloaded as soon as the view is
initialized, so when I load the view, I check for an exception
indicating that the external code isn't accessible and try again until
the view can be created without an exception.
This works in Firefox but it doesn't work in IE7/IE8. I used AJAX
Edition to trace what's happening in IE, and a request for the file is
made but it doesn't download anything, the size is 0. Firefox
correctly downloads the file.
Any idea what's going on?
Or is there a better way to do this? I originally had the JS includes
in the module's xml file and split the module's code off via
GWT.runAsync calls, but that didn't work, the compiler put the JS
references into the main module.cache.html so they got downloaded
immediately.
--
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.