Community
Participate
Working Groups
The actual implementation of the OpenSocialView does not handle the "opt_params" parameter of the gadgets.io.makeRequest(...) function. It always performs a GET method only using the URL. Herewith you'll find a patch partially implementing support of the "opt_params" parameter : * Supported "opt_params" : ** gadgets.io.RequestParameters.METHOD ** gadgets.io.RequestParameters.POST_DATA * Partially supported : ** gadgets.io.RequestParameters.CONTENT_TYPE *** DOM, TEXT and JSON contentTypes are supported *** FEED contentType needs to be implemented ** gadgets.io.RequestParameters.HEADERS *** At the moment I only retrieve the "Authorization" & "ContentType" headers ... I need a generic way to loop through the headers' array ... I have tested that code with gadgets retrieving data through SOAP protocol.
Created attachment 154869 [details] makeRequest opt_params support
Created attachment 155420 [details] reworked patch There were minor issues with the way the patch dealt with headers. I've also extracted the custom "makeXHR" BrowserFunction in a dedicated package. Thanks for this contribution, Sebastien! Hopefuly, this is one of the last time we write our homebrew JS: we need to leverage Shindig! :)
Created attachment 155421 [details] reworked patch There were minor issues with the way the patch dealt with headers. I've also extracted the custom "makeXHR" BrowserFunction in a dedicated package. Thanks for this contribution, Sebastien! Hopefuly, this is one of the last time we write our homebrew JS: we need to leverage Shindig! :)
Created attachment 155422 [details] mylyn/context/zip
Released in HEAD > 20100106 Thanks again, Sebastien!