Friday, September 10, 2010

Re: How to use external JS from GWT?

On Sep 10, 1:42 am, Zack Grossbart <zgrossb...@gmail.com> wrote:
> > In your example, where and how do you include the jQuery UI datepicker
> > widget?
>
> I defined them in the HTML file containing my GWT code.  Just a simple
> JavaScript reference the same way I would in any other HTML page.
Right. I was aiming for a solution where that js is loaded only when
needed, e.g. no need to load datepicker.js in the signin screen.

I saw this but seems too much for a simple <script src> equivalent in
View.ui.xml
http://www.amateurinmotion.com/articles/2009/09/07/injecting-javascript-in-gwt-2.html

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

No comments:

Post a Comment