On Apr 17, 4:30 pm, String <sterling.ud...@googlemail.com> wrote:
> You can generate a URL like this for any gadget
> athttp://www.gmodules.com/ig/creator?url=http://www.google.com/ig/modul....
> Obviously, you'll want to use your gadget's source location in the URL
> rather than that of the date/time gadget.
>
Thanks...that's great. But I am still facing some glitches.
For example, I have an opensocial gadget
http://hosting.gmodules.com/ig/gadgets/file/114149374870080035534/OSgadettobewrapped.xml
Inside it was code,
gadgets.util.registerOnLoadHandler(init);
Wrapping this and adding to opensocial.netvibes.com
URL-http://www.gmodules.com/ig/ifr?url=http://hosting.gmodules.com/ig/
gadgets/file/114149374870080035534/OSgadettobewrapped.xml
I get javascript error,
gadgets.util... is not defined.
I noticed wrapping it using http://www.gmodules.com/ig/ifr?
generates a script block which defines _IG_RegisterOnloadHandler() as
the load method.
I made the call and this error was gone.
I also noticed that for the date-time gadget, the internal javascript
used _IG_RegisterOnloadHandler()
and not gadgets.util.registerOnLoadHandler(init);
My question is do i have to write my gadgets like this??
Also as this gadget is opensocial enabled, in netvibes sandbox
opensocial variable is undefined.
I did parent.opensocial and I got permission denied.
I guess opensocial gadgets might not work this way.
But for a simple gadget do i have code against the way the wrapper
defines the javascript??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to
opensocial-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---