Hi,

If have recently played with several nice libraries that would help to
broaden browser support for modern web technologies. These include web-
socket-js, svgweb and swfupload.

To make a decent GWT module around them there is often a problem how
to include JS file that is doing all the magic. The easiest way is to
use a script tag in module description file. Things usually work fine
this way, but I really wouldn't like to punish good browsers like
Safari and Chrome. For example a solid SVG support is possible without
svgweb for most browsers without the Neuberg's great library, but I'd
want to include it only for IE. The same goes for my latest project
http://vaadin.com/addon/dontpush ( provides WebSocket support for
Vaadin and plain GWT too).

So the question is, is it possible to include external javascript only
for specific browser permutations? If not, are there any plans for
such a feature? I'd guess it would be easy to implement.

If this is not currently possible, does someone have an alternative
solution for this? Those libraries are often built so that they rely
on unload event and expect to be attached to head. Injecting those
libraries on runtime via e.g. IE widget implementation, is therefore
sometimes impossible. I would not also like to add requirement to
modify host page headers  (and conditionally to browser ua string) GWt
modules.

cheers,
matti

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

Reply via email to