Hi, please see this thread for a way to do it: http://groups.google.com/group/Google-Desktop-Developer/browse_thread/thread/88cc5324ae3670e2?hl=en
As a note to that thread: you can't store array objects directly in options, but you can store string representations of them. Then you can reconstruct the original array object from the string representation. You can do this two-way transformation through JSON: http://googledesktopapis.blogspot.com/2007/12/tip-use-json-to-store-complex-objects.html Thanks, Teo On Dec 19, 4:02 am, vrih <[email protected]> wrote: > I'm creating a gadget that stores all the relevant data in an array of > objects. I would like to be able to edit elements of this in the > options dialog but I cannot see how to make the variable truly global. > > If I contain the options dialog script within main.js rather than > options.js I can access the variable but on closing the dialog I > cannot reference any elements of the main view. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" 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/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
