On Mar 27, 2:16 am, cc <[email protected]> wrote:
> On 2010-03-26 14:00, Snigger wrote:
>
> > Hi
> > I have an object named "CONFIG"
> > And I'm trying to save the my CONFIG by encoding it into JSON
> > the first time save works but I can't update the value by:
>
> What exactly happens to let you know that it doesn't work -- do you get
> an error in Error Console? does it blank out the value of myconfig (as
> seen in about:config)? does it simply leave the value the same as before?

The value is same as before.

> > GM_setValue("myconfig",JSON.encode(VALUES));
>
> VALUES, or CONFIG? Make up your mind, please; if you're using both
> variables, that might be part of the problem.

Oh , it was type mistake , the code I posted before shows that.

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" 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/greasemonkey-users?hl=en.

Reply via email to