It's bizarre that the standard method of setting the title is not working for 
you. Did you try restarting Shindig/clearing your browser cache after making 
your change just to make sure it's not a caching issue?

As for your other question, the chrome around the gadget is controlled by the 
container--the implementer of the gadget can't do much about it besides set the 
title, height, etc. if supported. The gadget only controls the iframe in which 
it lives.

If you write your own container you can put whatever you want in the title bar 
(see iGoogle/Orkut for a different look). Those links that you see in the 
sample container are created by the example 
gadgets.IfrGadget.prototype.getTitleBarContent() function in 
javascript/container/gadgets.js

Thanks,
Dave

-----Original Message-----
From: karthi keyan [mailto:[email protected]] 
Sent: Thursday, January 08, 2009 1:05 PM
To: [email protected]
Subject: Re: Container title

Thanks matthew & dave.

Yay ! passing the title to the object of params worked for me. Thank you so 
much matthew !

I tried nocache=1 along with the property file changes which dave mentioned. 
But it didn't worked ! I don't know why.

BTW, there are two links "settings" and "toggle" just nearby the title. I want 
to get rid of these. where should I make these changes ? Any ideas ?

Thanks,
Karthi



----- Original Message ----
From: Matthew Russell <[email protected]>
To: [email protected]
Sent: Thursday, January 8, 2009 12:37:41 PM
Subject: Re: Container title

Hmm. I just verified that gadgets.window.setTitle seems to be working fine with 
the latest code I checked out a day or two ago. Maybe you are experiencing a 
caching problem of some kind? Have you tried adding nocache=1 into your url and 
all that? (My layout manager inherits directly from gadgets.LayoutManager 
similar to the sample code.)


On Jan 8, 2009, at 11:24 AM, karthi keyan wrote:

> Thanks for your reply dave. I exactly tried the below. It didn't throw me any 
> error. But the title didn't appeared instead title was displayed as "title". 
> I don't know what is wrong ? should I include any files ?
> 
> I am just using the sample container page as template and I build other 
> gadgets with that. Please let me know if I am wrong in any place.
> 
> Thanks,
> Karthi
> 
> 
> 
> ----- Original Message ----
> From: "Citron, David" <[email protected]>
> To: [email protected]
> Sent: Thursday, January 8, 2009 12:16:52 PM
> Subject: RE: Container title
> 
> Was this one of the things you tried?
> 
> <Module>
>  <ModulePrefs title="Put your title here">
>  ...
> 
> To support dynamic title modification, you can then add:
> 
>    <Require feature="settitle"/>
>  </ModulePrefs>
> 
> and then in JavaScript, do:
> 
>  gadgets.window.setTitle("Some other title");
> 
> assuming that the container supports it.
> 
> What else did you try?
> -Dave
> 
> -----Original Message-----
> From: karthi keyan [mailto:[email protected]]
> Sent: Thursday, January 08, 2009 12:14 PM
> To: [email protected]
> Subject: Container title
> 
> Hi,
> 
> I need to set the title to my gadget. I tried a lot and nothing worked for 
> me. Can anyone please help me ? Thanks in Advance.
> 
> Thanks,
> Karthi
> 
> 
> 


      

Reply via email to