On Mon, Jul 27, 2009 at 1:31 AM, GµårÐïåñ<[email protected]> wrote:

> and I have no reason to set alert on setValue,
That was just intended as an example where the context expected a
string, nothing else. It does not make sense in most situations,
although GM_setValue returns the set value, so that alert(GM_setValue
("foo", bar(x)) would evaluate the bar function on x, set the result
in the foo 'preference' and alert this very value.

> So consistent with that example, if I do alert(GM_getValue("foo")); it
> should not give me the error that its giving me above,

This trivial script (copy and paste) doesn't give this error for me:

// ==UserScript==
// @name           getvalue
// @namespace      http://esquifit.myopenid.com/
// @description    getvalue
// @include        *
// ==/UserScript==

alert(GM_getValue("foo"));

--~--~---------~--~----~------------~-------~--~----~
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