I have been trying to use gadgets.io.makeRequest() on Ning for days without any success. I am using simple TEXT content type and I'm fetching HTML content from "www.google.com" - just like the example in tutorial. But I keep getting the error on the app page: "domain_" is undefined. The is included below. It only shows the message "Sending request". Any help, pointers very much appreciated. Thanks.
-Satish <?xml version="1.0" encoding="UTF-8"?> <Module> <ModulePrefs title="hello world example" /> <Content type="html"> <![CDATA[ <div id="contentArea">Loading app...</div> <script type="text/javascript"> function reqHtml() { var params = {}; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT; document.getElementById('contentArea').innerHTML = "Sending request"; var url = "http://www.google.com/"; gadgets.io.makeRequest(url, rcvHtml, params); document.getElementById('contentArea').innerHTML = "Request sent"; }; function rcvHtml(obj) { var str = obj.text; var html = str.substr(0,1000); document.getElementById('contentArea').innerHTML = "Got the response"; }; gadgets.util.registerOnLoadHandler(reqHtml); </script> ]]> </Content> </Module> On Nov 12, 3:01 pm, Adrian <[EMAIL PROTECTED]> wrote: > Just FYI anyone having this similar issue on the Ning Container. I was > instructed to not use any additional ports other than 80 for now (I > had 8080) as it's a bug they are working on. After I used a domain > without the 8080 port it seems to work fine. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to opensocial-api@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---