Hi,
This could be possible, use a static variable
to keep the track of the state and then since there's only one copy of
that variable, it can accessed at any point in the program/robot :)
--
Regards,
Vikram
On Tue, Nov 10, 2009 at 1:37 PM, Austin Chau (Google employee)
<[email protected]> wrote:
> No gadget states are specific to each gadget and not shared among other
> gadgets within the same wave.
>
> There are several ways to maintain "state" among different gadgets of the
> same wave, you can maintained your own persistent storage on remote server
> and use some crossdomain mechanism (jsonp, script injection, etc) to share
> data. You can also use wave robot to maintain data for you and store them
> on the wave data document.
>
> Austin
>
> On Tue, Nov 10, 2009 at 10:00 AM, rgibson <[email protected]>
> wrote:
>>
>> I would like to share state between multiple gadgets. When I read the
>> wave gadgets tutorial, it sounded as if the state was stored at the
>> Wave level. (E.g., call wave.getState() to get the state, gadgets
>> "share state", etc.) So there would be one "count" per Wave, not one
>> "count" per gadget.
>>
>> Of course, this introduces its own problems (e.g., every gadget
>> developer has to know about the namespace of every other gadget.) And
>> a quick check shows that if you run two examples of the "count"
>> example gadget, they each have their own "count" variable that updates
>> independently.
>>
>> So is there a way for two gadgets in a Wave to share their state? Or,
>> what's the best way to do this?
>>
>> I am new at this and trying to poke my way through the documents, but
>> I've gotten to the point where it's better to ask.
>>
>> Thanks,
>> Rob
>>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Wave API" 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-wave-api?hl=en
-~----------~----~----~----~------~----~------~--~---