Tuesday, July 6, 2010

Google Wave, Part 2

Roughly 2 months after first looking at the Google wave API, I finished my first Google wave gadget.  I included it in the wave embedded in the original post: check it out here.

It's a simple app that graphs numbers as they're entered, intended to track weight.  I discovered that the wave API has a couple tricky bits to it.  Using a variable as a key when storing or getting a value does not work, while using a string literal does.  For example:

 wave.getState().get('count');  
works perfectly, but:

 var mapId='count';
 wave.getState().get(mapId); 
will not work at all.

Hopefully I have some more time going forward to play around with the wave API.

No comments:

Post a Comment