Hi,

I am trying to get some json encoded data from a "webservice" (php
script echoing the json).

On the live system this works, in the sandbox it returns a 404 error
page:
<H1>Not Found</H1>
<H2>Error 404</H2>

I tried to call the service with _IG_FetchContent and with
gadgets.io.makeRequest, always the same result. And yes, I can access
the file via the web browser.

This is the code used to call the service:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs
     title="Hello World!">
    <Require feature="opensocial-0.8    " />
    <Require feature="views"/>
    <Require feature="dynamic-height"/>
  </ModulePrefs>

  <Content type="html" view="home">
    <![CDATA[
[... css definition ...]

  <script type="text/javascript">
    [... private functions ....]

    function init(){
      _IG_AdjustIFrameHeight();

      _gel('row1_content').innerHTML = 'Loading ...';

      var params = {};
      params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.JSON;
      var url = "http://xxxx.com/v2/xxxx.php?t="+Math.random(0,10000);
      gadgets.io.makeRequest(url, response, params);
    };

    function response(obj){
      alert(obj.errors.toString());
    };


    // call the function init()
    _IG_RegisterOnloadHandler(init);
  </script>


The alert displays Error 404 and in Firebug I can see the call to
http://111.ig.sandbox.gmodules.com/gadgets/makeRequest?refresh=3600&url=http%3A%2F%2Fxxxx.com%2Fv2%2Fxxxx.php%3Ft%3D0.2561245572751162&httpMethod=GET&headers=&postData=&authz=&st=&contentType=JSON&numEntries=3&getSummaries=false&signOwner=true&signViewer=true&gadget=http%3A%2F%2Fxxxx.com%2Fv2%2Fgadget2.xml&container=ig&bypassSpecCache=1
fail (404).

Did I miss anything about remote procedure calls not being possible in
the sandbox?
If I did, how can I test this then?

Thanks,
Cornelius

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle 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/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to