6 messages in com.googlegroups.opensocial-apiRe: makeRequest
FromSent OnAttachments
wess...@googlemail.com05 Feb 2008 15:22 
Marc Wessely06 Feb 2008 10:47 
Aakash Bapna06 Feb 2008 12:11 
Aakash Bapna06 Feb 2008 13:18 
Marc Wessely06 Feb 2008 14:57 
Dedric Mauriac22 Feb 2008 18:25 
Subject:Re: makeRequest
From:Dedric Mauriac (dedr@gmail.com)
Date:02/22/2008 06:25:17 PM
List:com.googlegroups.opensocial-api

my guess ...

var params = { METHOD: gadgets.io.MethodType.POST, POST_DATA: postData };

gadgets.io.makeRequest(url, http_response, params);

On Feb 6, 5:57 pm, "Marc Wessely" <wess@googlemail.com> wrote:

Ok thanks seems to work but what is with post requests? i need them urgently, but i got not to pass postData when i need to generate it means ican write:

var param = {postData:'hello} and it works but i want to substitute hello by an urlencoded json string.

how to do that?

marc.'

2008/2/6, Aakash Bapna <aak@live.com>:

Hi Marc, i also got this error with new v0.7, but analyzing the javascript source got it to work The field AuthorizationType.AUTHENTICATED is not supported yet, hence i got same error as yours with it.

Now you have to use the data field to get the final response, your code should be" html += responseText.*data*;" try params[gadgets.io.RequestParameters.CONTENT_TYPE]= gadgets.io.ContentType.TEXT;

Thanks

------------------------------ Date: Wed, 6 Feb 2008 19:48:19 +0100 From: wess@googlemail.com To: open@googlegroups.com Subject: [OpenSocial] Re: makeRequest

Hi arne, can you help me out with this??

thats the full error message firebug gave to me!

processResponse(" http://eiche.informatik.uni-rostock.de/clipping/share/scripts/php/sto... <html><body>hall...", function(), "webclip", XMLHttpRequest)ifr (line 805) (no name)()ifr (line 115) text: data.body,

2008/2/6, wess@googlemail.com <wess@googlemail.com>:

Hello,

I have an issue with makeRequest function, thats the code i am using:

var params = {};

gadgets.io.makeRequest(param, function (responseText) { var html = "<div style='padding: 5px;" + "text-align:left;font-size: 90%'>"; html += responseText; html += "</div>"; document.getElementById('main').innerHTML = html; },params);

and i get this error:

data.text has no properties in response callback function

why??

do i need some more parameters, i thought they are optional!