Hi,
I have developed an orkut app that extracts profile details of
friends. Now i need to write these details to a file.
For this i tried to send a small data (Array) to a freewebhost where i
have my account.

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]= data;
gadgets.io.makeRequest(url, response, params);
};

function response(obj) {
document.getElementById('post').innerHTML=obj.text;
document.getElementById('data').innerHTML=postdata;
};

gadgets.util.registerOnLoadHandler(makeRequest("http://
orkutapp.x10hosting.com/test.php", data));

This code displays the contents of the url ("http://
orkutapp.x10hosting.com/test.php") in orkut app. But, i dont know
whether the data is being sent to the php file in webhost. Please tell
me how to do it. I have tried printing "$_POST['submit']" but it didnt
help.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to