Yeh it's possible - but I'm not sure thats the "best" way of doing
it... (for example I've used it when I have a 'Native' browser
implemention and a 'Gears' implementation both implementations extend
a default one - which is the one I use in my app code - GWT then
replaces this with either a Native implementation or a Gears
implementation...)
If the js file you're including isn't exposed to GWT then I would say
do the include yourself e.g. (in your HTML file)
<!--[if IE]>-->
<script src="test.js"></script>
<!--<![endif]-->
But by doing it this way you don't get any benefit of the GWT
compiler.
What *might* be better would be to create a JSNI version of your JS
file...
But I'm certainly no expert, someone else might have a better idea.
Cheers,
Dave
On Jan 24, 5:56 pm, markww <[email protected]> wrote:
> Hi,
>
> I'm trying to do a bit of deferred binding, not sure if this is
> possible with GWT. I want to use an external js file, only if the
> browser is Internet Explorer. The deferred binding example I found
> shows how to load some gwt classes dynamically - I'd like to include
> this js file dynamically though. Something like:
>
> if (browser == 'ie')
> Use test.js
>
> is something like that possible?
>
> 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 [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.