So, lemme see if I have this straight:

I have a gadget that responds to a user event by calling

wave.getState().submitValue("mykey","myvalue");

I have this in the gadgetInit

if (wave && wave.isInWaveContainer()) {
        wave.setStateCallback(stateUpdated);
}

I have my test sandbox and my regular sandbox account both looking at
a wave where I've added the gadget by url.  When it loads, I set
mykey, and the stateUpdated fires.   After that, it never fires again,
for either wave participant.  I am most certainly doing something
wrong, so any ideas are appreciated.

http://ruprict-gadgets.googlecode.com/svn/trunk/arcgismap.xml is where
this abomination lives (first shot at a gadget)...

Thanks,
Ruprict

On Oct 17, 6:23 pm, David Nesting <[email protected]> wrote:
> On Sat, Oct 17, 2009 at 1:43 PM, maxsap <[email protected]> wrote:
> > Hello to all, I have a question about the gadget api.
> > the gadget has shared state wright? this means that if i make a
> > playback gadget and some user in a wavelet plays a file from that
> > gadget all the users in  the wavelet will hear the sound? or if the
>
> The gadgets share state, but they have to be written in such a way that they
> work from that persisted state, rather than directly with user events.  In
> other words, if a gadget responds to a button's click event, and starts
> playback, the other instances of that gadget will never see it, because no
> state change was written to the wave.  If, instead, the button's click event
> simply wrote a "current state = play" state change to the wave, and the
> gadgets listened for those state changes to decide what state they should be
> in, then each instance of the gadget would react to that press of the
> button.
>
> David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to