Hi, I used JsniBundle from Gquery to load jquery and the wrapped library.
Le vendredi 16 mai 2014 15:47:03 UTC+2, Telmo Alves a écrit :
-- The Java code above is correct but I had to modify the library. The functions were wrote like this :
(function(a) {...})(Jquery);
And I had to add window. before Jquery :
(function(a) {...})(window.Jquery);
For an other library that is a jquery extension, I had to change each jQuery to $wnd.jQuery
jQuery.extend({
became
$wnd.jQuery.extend({
You had to use $wnd.$ to call jquery in JSNI :
private native void hideJS(String id)
/*-{
$wnd.$("#" + id).mobiscroll('hide');
}-*/;
Le vendredi 16 mai 2014 15:47:03 UTC+2, Telmo Alves a écrit :
Hello Raphael, did you solve your problem with GWT and jQuery? If you did, could you help me out? I've been struggling with pretty much the same problem, tried all those alternatives and still can't make it work. In my case, if I hit F5 or Ctrl+F5 and refresh the page it just works and I can't figure out why.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment