Hi,
i have made an orkut app which shows the profile details of my
friends.
i am trying to send small data to my sever using the makeRequest()
function with POST method. The url passed to this function is of a
free web host on which i have a php file.
Through the call back function i can see the output of the php file
but i am not able to recieve data in the php file.
function makeRequest(url, post) {
var params = {};
postdata = gadgets.io.encodeValues(post);
params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.POST;
params[gadgets.io.RequestParameters.POST_DATA]= postdata;
gadgets.io.makeRequest(url, response,params);
};
function response(obj) {
document.getElementById('post').innerHTML=obj.text;
document.getElementById('data').innerHTML=postdata;
};
Please help me get this data. Or suggest any other method to write use
profiel data to a file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Implementing OpenSocial Containers" 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/opensocial-container?hl=en
-~----------~----~----~----~------~----~------~--~---