title: How to call jquery trigger from gwt?
body: <pre><code>  public static native void doConnect() /*-{
              $wnd.jQuery(document).trigger('connect',
                      {
                      jid: 'sss',
                      password: 'sss'
                  }
  
                  );
  
          }-*/;
  </code></pre>
  
  <p>i tried the above ,but there is no error in firebug or gwt hosted mode
  console(so i cannot know whether the code is success or not). may i know is this the correct way to call jquery trigger?  but when i put alert() in bind('connect'), it was not called </p>
  
  <h2>inside .js file</h2>
  
  <pre><code>    $(document).bind('connect', function (ev, data) { 
  alert('not call.....at all');
  
          var conn = new Strophe.Connection(
              "http://bosh/xmpp-httpbind");
  
          conn.connect(data.jid, data.password, function (status) {
              if (status === Strophe.Status.CONNECTED) {
                  $(document).trigger('connected');
              } else if (status === Strophe.Status.DISCONNECTED) {
                  $(document).trigger('disconnected');
              }
          });
  
          Hello.connection = conn;
      });
  </code></pre>