Hi, I'm fairly new to the OpenSocial API, so I guess my question is a really basic one. This is my first step ahead from displaying a "hello world" in the app canvas, which was my first test ever. The code is right bellow and only prints the "Owner's name:" anchor and the "The name should apper in here" label.
<?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="Hello World!"> <Require feature="opensocial-0.8" /> </ModulePrefs> <Content type="html"> <![CDATA[ <script type="text/javascript"> function response(data) { html = new Array(); html.push('<b>', data.get("req").getData().getDisplayName(), '</b>') document.getElementById('AppContent').innerHTML = html.join(''); gadgets.window.adjustHeight(); }; function request() { var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER), "req"); req.send(response); }; </script> <a href="#" onclick="request(); return false;">Owner's name:</a> <br> <div id="AppContent">The name should apper in here</div> ]]> </Content> </Module> What am I missing? Thanks for your time, Victor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@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-orkut?hl=en -~----------~----~----~----~------~----~------~--~---