SIDEBAR
»
S
I
D
E
B
A
R
«
GQuery = GWT + jQuery
Mar 5th, 2010 by Brian Maso

From Timefire:

First, let’s just dispense with the details and show you a working example, yes, this is working code:

public void onModuleLoad() {
    $("div").css("color", "red").click(new Function() {
      public void f(Element e) {
        Window.alert("Hello");
        $(e).as(Effects).fadeOut();
      }
    });
  }

If you haven’t seen that before, and if the left side of you brain didn’t just rupture the coronal suture between the frontal and parietal bones of your skull, then get find an absorbent mop and read it again.

Inheriting and using GQuery is as easy as importing in to your module. Of course you need to download and build GQuery, then try it out!

<module ...>
  <inherits name='com.google.gwt.query.Query'/>
  ...
</module>
»  Substance:WordPress   »  Style:Ahren Ahimsa