MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

I get a strange error when I send an invite - "r is not a function"

Last post 11-11-2009 4:46 PM by Daniel. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-23-2009 7:46 AM

    I get a strange error when I send an invite - "r is not a function"

    Hello,

     I have a stressfull error for 2 days. I'm still looking over the code but I'm not able to find the error.

     

     <script type="text/javascript">

    var u = location.href, h = u.substr(u.indexOf('#') + 1).split('&'), t, r;
    try {
     t = h[0] === '..' ? parent.parent : parent.frames[h[0]];
     r = t.gadgets.rpc.receive;
    } catch (e) {
    }
    r && r(h);
    </script>
     
    That's the code that generates the error ! Is not my code. I don't know from where comes.
    FireBug says it comes from here http://api.msappspace.com/OpenSocial/rpc_relay.aspx#Bobby&..@2&1&0&%7B%22s%22%3A%22__cb%22%2C%22f%22%3A%22..%22%2C%22c%22%3A0%2C%22a%22%3A%5B4%2C%7B%22ResultCode%22%3A1%2C%22Results%22%3A1%2C%22ResponseValues%22%3A%7B%22success%22%3A%5B1000447201%2C59841106%5D%2C%22failure%22%3A%5B%5D%7D%7D%5D%2C%22t%22%3A%220%22%2C%22l%22%3Afalse%7D
     
     
    Please help.
     
    appId=127564
     
    Thanks !
     
     
     
    Filed under:
  • 10-23-2009 7:50 AM In reply to

    Re: I get a strange error when I send an invite - "r is not a function"

     The error appears after the message : "Your invite was successfully sent." and I hit close button or expect window to close automatical.

    Because of the error the response of  opensocial.requestShareApp(friends_sent, reason, sendInvites);

    that I expect in sendInvites(resonse) function is undefined

  • 10-23-2009 8:53 AM In reply to

    Re: I get a strange error when I send an invite - "r is not a function"

     I'm using firefox browser

  • 11-11-2009 4:46 PM In reply to

    Re: I get a strange error when I send an invite - "r is not a function"

     After a lot of debugging I solved the problem. Thanks !

Page 1 of 1 (4 items)