We are now facing the same requirement!

So, in gwt.xml, there are conditional ways of defining replace and
generators.
But not for resources (css/js), nor inherits....

It would be great to have conditions for them as well, basically
because many js libraries out there are browser specific.

On Nov 3, 9:45 pm, mstahv <matti.tahvo...@gmail.com> wrote:
> 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 
> projecthttp://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 google-web-tool...@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.

Reply via email to