[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-03 Thread [EMAIL PROTECTED]
Hey Dustin, Thankyou for helpingit works when I use methodType instead of method and gadgets.io instead of opensocial Cheers, Makarand On Feb 2, 11:01 am, Dustin Jorge <[EMAIL PROTECTED]> wrote: > The difference is the namespace. Using 'methodType':'post' works if you > call gadgets.io.maker

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-02 Thread [EMAIL PROTECTED]
Sure ! I am also trying to get it through, will let you know if I get it correct. Hemant On Feb 2, 10:12 pm, Dustin Jorge <[EMAIL PROTECTED]> wrote: > I believe gadgets.io is where the makeRequest function will live in 0.7, > so I'm trying to avoid using opensocial.makeRequest any more. > > I ca

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-02 Thread Dustin Jorge
I believe gadgets.io is where the makeRequest function will live in 0.7, so I'm trying to avoid using opensocial.makeRequest any more. I can only get post working with gadgets.io.makeRequest, and I haven't seen signing work without using opensocial.makeRequest. Also, the returned object from t

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-02 Thread [EMAIL PROTECTED]
Hi, Have you get success in opensocial.makerequest also like below- opensocial.makeRequest('URL', function (response) { }, {'method' : 'POST', 'contentType' : 'html', 'postData' : 'a=b&c=d' }) I am stucked here, can you help . I see in reponse from container Orkut server

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-02 Thread Dustin Jorge
Has anyone gotten a signed request to go through using gadgets.io.makeRequest yet?? (not opensocial.makeRequest) victorc wrote: > Yes using opensocial.makeRequest, signed requets work using some > workarounds (because still some bugs in OAuth implementation). > More details here > http://group

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-02 Thread victorc
Yes using opensocial.makeRequest, signed requets work using some workarounds (because still some bugs in OAuth implementation). More details here http://groups.google.com/group/opensocial-orkut/browse_frm/thread/c11ed68173a2bc69 and some info here http://groups.google.com/group/opensocial/web/vali

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread Dustin Jorge
The return object contains 'text', 'errors', and 'data' which are also all objects. You can use something like the code below to see the contents of the returned object: function retDat( data ){ var html=''; for(x in data){ html += x + ': ' + data[x

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread alvin
Awesome, Dustin. It seem to work. However, the call does not seem to work with contentType = 'html'? Is it expecting JSON? I returned a simple string from my PHP and when I try to print it out with javascript, I see "Object object" Thanks O"n Feb 2, 2:01 pm, Dustin Jorge <[EMAIL PROTECTED]>

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread Dustin Jorge
The difference is the namespace. Using 'methodType':'post' works if you call gadgets.io.makerequest, but not opensocial.makerequest. I prob shouldn't be using gadgets.io under 0.6 anyway :) alvin wrote: > When I use {'methodType':'post'} I get this javascript error: > > postData only supported f

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread Dustin Jorge
I've had success with this using 0.6 on Orkut: var fetcher = { fetch:function(url, cb, err){ var _self = this; var params = { 'authenticationType':'signed',

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread alvin
When I use {'methodType':'post'} I get this javascript error: postData only supported for POST methods http://1.gmodules.com/46/o/opensocial-0.6.js Line 127 It looks like "Method" is the correct name for that property but "Post" is not supported... On Feb 2, 12:15 pm, Dustin Jorge <[EMAIL PROT

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread Dustin Jorge
Try using {'methodType':'post'} in lieu of {'method':'post'}... that should do it. -Dustin / iWiddit.com alvin wrote: > I cannot seem to get makeRequest to use POST. > > This is the line of code: > > opensocial.makeRequest("http://mydomain.com/test/hello.php";, > onServerResponse, {'method

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread alvin
I cannot seem to get makeRequest to use POST. This is the line of code: opensocial.makeRequest("http://mydomain.com/test/hello.php";, onServerResponse, {'method' : 'POST', 'contentType' : 'html', 'postData' : 'a=123&b=456'} 1. On server side, $_POST is empty 2. $_SERVER['REQUEST_METHO

[OpenSocial] Re: How to send data using post method in makeRequest

2008-02-01 Thread [EMAIL PROTECTED]
{ 'postData' : 'A=value&B=value' } -Dustin On Feb 1, 2:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I need help me on posting variables to a server side file using > makerequest() > > Suppose I have 2 variables 'A' and 'B' to be posted > How do I pass these variable to the func