On Apr 17, 3:12 pm, "syndicatebk...@gmail.com"
<syndicatebk...@gmail.com> wrote:

> Also as this gadget is opensocial enabled, in netvibes sandbox
> opensocial variable is undefined.
> I did parent.opensocial and I got permission denied.

That's not surprising. Your gadget is contained in an iframe, and
browser security rules prevent calling scripts from other frames.

> 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??

I think I understand your motivation for wanting to "wrap" your code
in this way, but you'll continue to run into difficulty trying to call
any external libraries from that code due to the frame restriction
mentioned above. Unless the container (NetVibes in this case) has
provided some technique for importing libraries into an iframe, I
doubt you're going to get this to work. Has NetVibes done so? I've not
seen it in the UWA but I'm less familiar with that than other
containers.

If not, you'll probably need to abandon the wrapper technique and code
this directly as a UWA widget.

String
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to