11 messages in com.googlegroups.google-desktop-developerRe: Options won't save
FromSent OnAttachments
Nathanael Ness22 Aug 2007 11:13 
Bijoy Thangaraj [API Guru]22 Aug 2007 11:22 
Nathanael Ness22 Aug 2007 11:32 
Bijoy Thangaraj [API Guru]22 Aug 2007 11:36 
Nathanael Ness22 Aug 2007 11:51 
Nathanael Ness22 Aug 2007 12:42 
Teo [API Guru]22 Aug 2007 23:07 
Nathanael Ness23 Aug 2007 03:43 
Teo [API Guru]23 Aug 2007 05:00 
Bijoy Thangaraj [API Guru]23 Aug 2007 05:36 
Nathanael Ness23 Aug 2007 14:10 
Subject:Re: Options won't save
From:Bijoy Thangaraj [API Guru] (jspl@gmail.com)
Date:08/22/2007 11:36:48 AM
List:com.googlegroups.google-desktop-developer

Yes. You are correct. Did it work?

Thanks and Regards, Bijoy Thangaraj

On Aug 22, 11:32 pm, Nathanael Ness <spi@gmail.com> wrote:

function view_onOpen() { options.putDefaultValue("banner", "ON"); ....

}

On Aug 22, 11:22 am, "Bijoy Thangaraj [API Guru]"

<jspl@gmail.com> wrote:

Hi Nathanael,

Can you put the following code on the onOpen() function of main.js?

options.PutDefaultValue("banner","ON");

I guess, the problem here is that the onOpen() function of options.js is trying to retrieve a value which was not set before.

Thanks and Regards, Bijoy Thangaraj

On Aug 22, 11:13 pm, Nathanael Ness <spi@gmail.com> wrote:

When I try so store user options with the options object I get the following run time error. The data for the following gadget(s) could not be saved. My save code is almost an exact copy of the SDK example. I though it maybe a problem with Google Desktop and Vista but the error also occurred when I installed Google Desktop and my gadget on my XP box.

Here is my options.js

----------------------- function onOpen() { banner.value = (options.getValue("banner") == "ON");

}

function onCancel() {

}

function onOk() { options.putValue("banner", banner.value ? "ON" : "OFF");}

----------------------- banner is a check box and also the name I want to give the option.

Any help would be appreciated.