What about _args()['parent']? That's what I usually use, and it seems fairly reliable. It certainly works for iGoogle, returning a value of "http://www.google.com".
String On Nov 23, 11:02 pm, "Jerome (Guru)" <[EMAIL PROTECTED]> wrote: > Hi there, > > You are correct, the source parameter is not set in some situations > (including iGoogle and Google Sites). You will not be able to know > which Google site is displaying the gadget, but you can differentiate > between containers by checking the value of the "synd" parameter. > _args()["synd"] > > When the gadget is running on iGoogle, synd will have the "ig" value. > As far as I have experienced, on Google Sites, synd will be set to > "trogedit". > > If you'd like to experiment, here is a modified gadget to display not > only the source but the synd as > well:http://www.ljmsite.com/google/gadgets/tests/get_source_n_synd.xml > > Here is this gadget embedded on a page (source available and synd set > to open):http://www.ljmsite.com/google/gadgets/tests/get_source_n_synd.html > > I hope this helps. > > Jerome > > On Nov 19, 11:48 pm, Region 3 DFG <[EMAIL PROTECTED]> wrote: > > > this previous post seemed to be exactly what i was looking for.. > > >http://groups.google.com/group/Google-Gadgets-API/browse_thread/threa... > > > but i can not seem to get it to work for Google Sites. The above post > > notes that you will get a "undefined" if the gadget is hosted on > > Igoogle so is this also true on google sites? or is there a different > > way to access the url address in google sites? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle 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/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
