Also method from this http://code.google.com/p/opensocial-resources/wiki/RPC article doesn't work under IE6 and IE7 - this is reported here http://code.google.com/p/opensocial-resources/issues/detail?id=349&colspec=ID%20Type%20Container%20Stars%20Summary%20Status
On Sep 16, 5:22 am, [EMAIL PROTECTED] wrote: > Hm, it looks like you may need to include a <Requires feature="rpc" /> > to your ModulePrefs section. Friendster may also not support RPC, > which is defined by the spec to be an optional feature. > > If including the <Requires feature="rpc" /> element works, please > respond and I'll work on getting the article updated. > > Thanks, > ~Arne > > On Sep 15, 5:14 am, Jarebb <[EMAIL PROTECTED]> wrote: > > > Hi There, > > > I'm developing an application with friendster and plan to use iFrame. > > But I encounter a problem when using gadget.rpc for friendster > > application. Ref fromhttp://code.google.com/p/opensocial-resources/wiki/RPC, > > i copies the solution to my application be it's doesn't work. I gotten > > an error, "gadgets.rpc is null or not an object". > > > The following is my code > > > <?xml version="1.0" encoding="UTF-8"?> > > <Module> > > <ModulePrefs title="rpc"> > > <Require feature="opensocial-0.7" /> > > </ModulePrefs> > > <Content type="html"><![CDATA[ > > > <script type="text/javascript"> > > var auth = "password"; > > gadgets.rpc.register("remote_alert", function(msg, auth_key) > > { > > if (auth_key == auth) { > > alert(msg); > > } > > }); > > </script> > > > <iframe src="http://www.MyDomain.com?auth=password" /> > > > ]]></Content> > > </Module> > > > And this is my HTML code > > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head runat="server"> > > <title>Untitled Page</title> > > <script type="text/javascript" src="http://sandbox.ig.gmodules.com/ > > gadgets/js/rpc.js"></script> > > <script type="text/javascript"> > > var re = /auth=([^&]+)/; > > var auth = re.exec(window.location)[1]; > > function some_callback() { > > return false; > > } > > </script> > > </head> > > <body> > > <form id="form1" runat="server"> > > <div> > > <a href="#" onclick="alert('local'); gadgets.rpc.call('', > > 'remote_alert', some_callback, 'remote', auth);">Alert!</a> > > </div> > > </form> > > </body> > > </html> > > > Is it that i forget something else? > > > Thanks very much for helping. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" 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-api?hl=en -~----------~----~----~----~------~----~------~--~---
