I can't understand why code is not working at my end , I am able to fetch orkut friends and other api's but at my end makerequest api is not sending the responce.
I have checked there is not error when i call the makeNormalRequest() and alert() comes out till end but my resp(obj) function is not giving me the alert or its not getting the responce. is there some problem with my server , i have checked the url as : var url = "http://www.google.com"; but it still not working with any parameters ie post, get , feed etc. Any sugessions? thanks var params = {}; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT; var url = "http://www.google.com"; gadgets.io.makeRequest(url, resp, params); }; On Mar 16, 10:28 am, Vijaya <[email protected]> wrote: > Can you please check your URL:http://myserver.com/orkut_app/makerequest.php > > I tried your code with a different URL (http://www.google.com) in the > OpenSocial developer app > (http://osda.appspot.com/) > and it works fine: > > function makeNormalRequest() { > > var params = {}; > params[gadgets.io.RequestParameters.CONTENT_TYPE] = > gadgets.io.ContentType.TEXT; > var url = "http://www.google.com"; > gadgets.io.makeRequest(url, resp, params); > > }; > > function resp(obj) { > alert('Ok'); > //obj.text contains the text of the page that was requested > var ophtml = (obj.text); > document.getElementById('dom_handle').innerHTML = ophtml; > > }; > > makeNormalRequest(); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" 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-orkut?hl=en -~----------~----~----~----~------~----~------~--~---

