Hi I am using the makeRequest js api call to get contents from a remote server file but the data is not returned. I have checked the makeNormalRequest() is called succesfully but resp () is not called or no responce is there. Please let me know if there is a need to include a js file. I am not able to get any data in the 'content_div'
The url = "http://myserver.com/orkut_app/makerequest.php"; file has the content: <?php echo "hello"; ?> Below is the code: <script> function makeNormalRequest() { var params = {}; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT; var url = "http://myserver.com/orkut_app/makerequest.php"; 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('content_div').innerHTML = ophtml; }; makeNormalRequest(); </script> <div id='content_div'></div> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

