I developed os 0.7 application with everything inside the XML file.
This does gadgets.io.makeRequest to my server
and was working fine. But when I removed  all javascript from the XML
and put in an external file with a reference to
to it in the XML file like:

<script type="text/javascript" src="http://www.mydomain.com/js/os.js"; /
>

The app has stopped working. I did not change anything else.

Then I put back some Javascript in the xml file:
<script type="text/javascript" >

                function getViewerData() {
                    var req = opensocial.newDataRequest();
        
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
'viewer');
                    'viewerFriends');
                    req.send(callbackViewData);
                };

                gadgets.util.registerOnLoadHandler(getViewerData);
        </script>

But it is still not working.
Is this a bug in opensocial container for orcut or external javascript
not supported?

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

Reply via email to