4 messages in com.googlegroups.google-gadgets-api[Google-Gadgets-API] Re: Dynamic Gadg...
FromSent OnAttachments
matchbx28 May 2008 05:20 
matchbx30 May 2008 07:21 
Bonstio (Guru)30 May 2008 08:20 
matchbx30 May 2008 09:26 
Subject:[Google-Gadgets-API] Re: Dynamic Gadget Title when the Gadget is collapsed
From:matchbx (matc@gmail.com)
Date:05/30/2008 09:26:20 AM
List:com.googlegroups.google-gadgets-api

I was afraid of that.

Thanks

On May 30, 11:21 am, "Bonstio (Guru)" <bons@gmail.com> wrote:

I don't think this is possible. IIRC, code in collapsed gadgets (inc. your call to setTitle) is not invoked on pageload. You could hard code a substitute title in the title attribute of ModulePrefs but I think that's your only option right now.

On May 30, 3:21 pm, matchbx <matc@gmail.com> wrote:

Hello.... Anybody.......

Can you have a dynamic Gadget Title when the Gadget is collapsed?

I built a gadget that allows the user to set the Title using UserPrefs.  Everything works fine except when the user collapses the gadget and navigates away from the page.  When the user comes back, the title shown is the default title until the gadget is expanded.

Can you call a Javascript function from within ModPrefs?

<ModulePrefs title=TitleTest()  height="528"  width="608"> <Require feature="settitle" /> <Require feature="setprefs" /> </ModulePrefs>- Hide quoted text -

- Show quoted text -