sweet thats what i needed!
thanks Michael Geary i bet this is something rudimentary in http or
dom or something
all those areas im "thin" on
(funny... i work with a person named Geary)
On Nov 24, 11:46 am, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> I would try document.referrer.
>
> What do you get if you add this to the gadget:
>
> alert( document.referrer );
>
> -Mike
>
> > From: Region 3 DFG
>
> > to test out what comes from _args i inserted this into my gadget...
>
> > for(var param in _args()) {
> > var value = _args()[param];
> > //html.push(param);
> > html.push(value);
> > html.push('<br>');
> > }
>
> > ...and then later in the gadget i do this..
> > var tableDiv = _gel('tablediv');
> > tableDiv.innerHTML = html.join('');
>
> > ...the parameters i get back are just these...
> > mid
> > synd
> > url
> > h
> > w
>
> > ...url is the url of the gadget unfortunately!
>
> > On Nov 24, 9:43 am, Region 3 DFG <[EMAIL PROTECTED]> wrote:
> > > yeah but what i need is the actual page, so just to be
> > > clear...http://www.region3dfg.org/lands/1802-2005-020-3
>
> > > i need to know that the gadget is in the page "1802-2005-020-3"
> > > then the gadget will pull in details from multiple tabular
> > sources to
> > > include in a report
>
> > > On Nov 24, 2:26 am, "Jerome (Guru)" <[EMAIL PROTECTED]> wrote:
>
> > > > Hi String,
>
> > > > As far as I could tell, "parent" is undefined as well on
> > Google Sites.
>
> > > > But this is a good suggestion, as you are right, this works on
> > > > iGoogle returninghttp://www.google.com.
>
> > > > Jerome
>
> > > > On Nov 24, 9:50 am, String <[EMAIL PROTECTED]> wrote:
>
> > > > > 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_sy
> > > > > > nd.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_s
> > > > > > ynd.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_thre
> > ad/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
-~----------~----~----~----~------~----~------~--~---