Has anyone had any luck creating an iGoogle gadget that uses
opensocial? Mine fails with a Javascript error: "opensocial is not
defined". Firebug leads me to believe that the opensocial JS is not
getting loaded. When I use <Require> for other features, their JS
shows up in my gadget's iframe, but when I <Require> opensocial-0.5,
no extra JS seesm to appear.

(This is on Firefox 2.0.0.6 on MacOS X; a similar error appears in
Safari 2 on Mac OS X.)

I've tried it from my own webserver as well as in Google Gadgets
Editor. I'm using the following code, which I copied directly from
this tutorial: http://code.google.com/apis/opensocial/articles/firstgadget.html


<?xml version="1.0" encoding="UTF-8" ?>
  <Module>
    <ModulePrefs title="People API Howto">
      <Require feature="opensocial-0.5" />
    </ModulePrefs>
  <Content type="html">
    <![CDATA[

      <script type="text/javascript">
        _IG_RegisterOnloadHandler(request);

        function request() {
          var req = opensocial.newDataRequest();
        }
      </script>
    ]]>
  </Content>
</Module>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Developers" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to