actually i not too sure what $wnd suppose to be it seem to be GWT JSNI stuff,
from this example http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.JavaScriptNativeInterface.JavaScriptFromJava.html it use that too. anyway i manage to get what i wanted thanks On Jun 16, 12:56 am, Joe Gregorio <[email protected]> wrote: > What is the $wnd supposed to be? > > Here is another example of using the gadgets.io interface: > > http://code.google.com/p/google-wave-resources/source/browse/trunk/sa... > > Thanks, > -joe > > -- > Joe Gregorio > Developer Relations, Google Wave > > On Thu, Jun 10, 2010 at 7:17 AM, Alex <[email protected]> wrote: > > i use cobogwave to build my wave gadget, i want to make a POST request > > to a url. > > > i trying to use what was suggested by > >http://groups.google.com/group/google-wave-api/browse_thread/thread/0... > > > can somebody tell me what i did wrong on this code? i cant get to the > > process response part > > private native void sendRequest(String url,String dataStr) /*-{ > > > var params = {}; > > params[$wnd.gadgets.io.RequestParameters.METHOD]= > > $wnd.gadgets.io.MethodType.POST ; > > params[$wnd.gadgets.io.RequestParameters.POST_DATA] = > > dataStr; > > $wnd.gadgets.io.makeRequest(url, > > function(data,errors,headers,rc,text){ > > //process response > > }, params); > > }-*/; > > > and is it posible to pass in the callback like > > private native void sendRequest(String url,String > > data,com.google.gwt.http.client.RequestCallback callback) /*-{ > > }-*/; > > > if i were to switch to OpenSocial, how should i do it? > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Wave API" 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 > > athttp://groups.google.com/group/google-wave-api?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Wave API" 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-wave-api?hl=en.
