views:

12

answers:

1

Is there a way to get the "parent url" of an Opensocial container?

Google Sites embeds gadgets through an Opensocial container and I'd like to grab the parent's URL to generate a message.

Is this possible?

+1  A: 

Of course there is.

gadgets.util.getUrlParameters()["parent"] or gadgets.util.getUrlParameters().parent

shoud give you the parent url.

feridcelik
works like a charm! thanks a million!
jldupont