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/072bb178151a0961

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 at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to