The selection scripts do make use of document.write(), which I don't
believe will work properly after the document is loaded. Do you
think that would explain what you are seeing?
On Dec 11, 3:56 pm, Raziel raziel...@gmail.com wrote:
Using GWT 1.5.3:
According to the documentation, In the GWT 1.4 bootstrap model, GWT
expects to find all its files in the same path as the
module.nocache.js file.. Thus, having the host HTML file
athttp://host.domain.tld/myApp/index.html, and the module.nocache.js
and other files generated by the GWT compiler in other location.
It all works fine for me when I use the script tag. However, in my
application I mostly use a JS function to load scripts dynamically.
This function uses XmlHttpRequest to grab the script content, and then
performs an eval on it. In this case it loads the module.nocache.js
successfully, BUT the script then tries to look for the other
resources under the location/URL that loaded the host page -which in
simple cases could be the location of the host page, but others (for
example when the host page is included in other page, or it's
retrieved through an struts action) could be something completely
different, for which there's not even a physical location.
In some other scenarios, when the host page is part of a deeper
nesting of imported pages, the module.nocache.js is imported
properly but fails when executed, claiming that
com_sample_MyGWTApplication is undefined when executing the following
line: com_sample_MyGWTApplication.onInjectionDone
('com.sample.MyGWTApplication')
I know that it might be my fault, and might be pushing the technology
beyond it's confort zone. However one of the things that appealed to
me to finally use it was the fact that didn;t claim to marry
entirely to it. The problem is that I don;t know what kind of contract
I'm breaking with GWT. The documentations says simply include the JS
file and done, magic! I know nothing is magic, but is there a clearer
document that establishes the contract to properly use GWT? Has
somebody any idea of what could be happening in my case?
Thanks
--~--~-~--~~~---~--~~
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-Toolkit@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
-~--~~~~--~~--~--~---