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/samples/extensions/robots/python/people-finder/templates/gadget.xml

 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/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.
>
>

-- 
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