MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Did gadgets.io.makeRequest method change?

Last post 07-06-2009 10:54 AM by Chak. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-06-2009 2:42 AM

    • Arto
    • Not Ranked
    • Joined on 03-13-2008
    • Posts 1

    Did gadgets.io.makeRequest method change?

    Hi, 

     I have video player application which works on profile pages. It first gets users id, and then sends request using gadgets.io.makeRequest to my server, which then returns HTML result. It's been working for around six months now, until today I noticed it's broken. 

    Call with gadgets.io.makeRequest seems to return only some nonsense javascript. Has somethign in that method changed?

     Here's my snippet in short:

        var param = {};
        param[gadgets.io.RequestParameters.AUTHENTICATION] = gadgets.io.AuthorizationType.NONE;
        param[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.POST;
        param[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.HTML;
        param[gadgets.io.RequestParameters.POST_DATA] = {"user":OWNER_NAME};
        gadgets.io.makeRequest("http://example.com/", gotMakeRequest, param);

     and in function gotMakeRequest I just set c.innerHTML = response;

     

    EDIT: I'm using Opensocial 0.7

  • 07-06-2009 10:54 AM In reply to

    • Chak
    • Top 50 Contributor
    • Joined on 01-13-2008
    • Posts 70
    • MDP Team

    Re: Did gadgets.io.makeRequest method change?

     Hi Arto:

     Can you please capture the HTTP transaction in question (using Fiddler/Firebug) and post the contents here?

     Thanks

    Chak

Page 1 of 1 (2 items)