Sunday, October 16, 2011

Conditional script tag in a GWT module declaration

Hi all,

I would like to create a GWT module which includes a third-party
javascript library (a javascript xpath library) to patch a weakness for
one of the targeted browsers (IE, which does not support xpaths).
However I do not want to impact negatively the other browsers, which
already have native xpath support: it would be a bad idea to force them
to download the library if they are not going to use it.

Does anybody know if there is a way to use a <script> tag in my module
file, but only for the ie user agent ? If not does anybody have a clever
way of achieving the same thing ?

Many thank & regards

Lukas

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate