Gadget and Wave States problem

0 views
Skip to first unread message

Matias Molinas

unread,
Nov 23, 2009, 8:46:31 AM11/23/09
to pame...@gmail.com, google-...@googlegroups.com
He,
yesterday my gadget for todolist work fine with with wave states, this
day is not working.

Could be due to a server problem?

The wave where it worked yesterday and today you I can not retrieve
the gadget state is:

https://wave.google.com/wave/#restored:wave:googlewave.com!w%252B29Kw7WeBA.2

pamela (Google Employee)

unread,
Nov 23, 2009, 9:34:23 AM11/23/09
to google-...@googlegroups.com
Hi Matias - 

Please make that Wave public if you would like others to be able to see it.

- pamela

matias molinas

unread,
Nov 23, 2009, 10:32:31 AM11/23/09
to Google Wave API
Hi, sorry, is public now :-)

https://wave.google.com/wave/#minimized:nav,minimized:contact,minimized:search,restored:wave:googlewave.com!w%252B29Kw7WeBA.2



On 23 nov, 11:34, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:
> Hi Matias -
>
> Please make that Wave public if you would like others to be able to see it.
>
> - pamela
>
> On Mon, Nov 23, 2009 at 8:46 AM, Matias Molinas <matias.moli...@gmail.com>wrote:
>
> > He,
> > yesterday my gadget for todolist work fine with with wave states, this
> > day is not working.
>
> > Could be due to a server problem?
>
> > The wave where it worked yesterday and today you I can not retrieve
> > the gadget state is:
>
> >https://wave.google.com/wave/#restored:wave:googlewave.com!w%252B29Kw...

Matias Molinas

unread,
Nov 23, 2009, 8:52:13 PM11/23/09
to Google Wave API
As you can see using playback in:

https://wave.google.com/wave/?ll=debug#minimized:nav,minimized:contact,minimized:search,restored:wave:googlewave.com!w%252BBqazgSXrA.3

some times the wave states is alive and works

2009/11/23 matias molinas <matias....@gmail.com>:
> --
>
> You received this message because you are subscribed to the Google Groups "Google Wave API" group.
> To post to this group, send email to google-...@googlegroups.com.
> To unsubscribe from this group, send email to google-wave-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=.
>
>
>

Matias Molinas

unread,
Nov 23, 2009, 9:10:58 PM11/23/09
to Google Wave API, pame...@gmail.com

Matias Molinas

unread,
Nov 23, 2009, 9:21:01 PM11/23/09
to Google Wave API, pame...@gmail.com
Any idea about this behavior?

Here is the source code for using wave states in the gadget:

function stateUpdated(){
wave.log("stateUpdated...");
var eventList = wave.getState().get('eventList');
if (eventList){
var mydata = eval('(' + eventList + ')');
jQuery("#calendar").clearGridData();
for(var i=0;i<=mydata.rows.length;i++)
jQuery("#calendar").addRowData(i+1,mydata.rows[i]);
}
}

function saveState(key, value) {
var state = wave.getState();
var delta = {};
delta[key] = value;
state.submitDelta(delta);
}



function init() {

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

...................................................................



jQuery("#btnNew","#t_calendar").click(function(){
jQuery("#calendar").editGridRow('new',{
reloadAfterSubmit:false,
closeAfterEdit:true,
closeAfterAdd:true,
afterComplete : function() {
var idList = jQuery("#calendar").getDataIDs();
var jsonObj = {'rows': [] };
for(var i = 0; i < idList.length; i++)
{
jsonObj.rows.push(jQuery("#calendar").getRowData(idList[i]));
}
var jsonString = JSON.stringify(jsonObj);
saveState ('eventList',jsonString);
wave.log("Send update...");
}
});
});


.......................................................


gadgets.util.registerOnLoadHandler(init);







2009/11/23 Matias Molinas <matias....@gmail.com>:

a webulite

unread,
Nov 23, 2009, 9:45:27 AM11/23/09
to google-...@googlegroups.com
Pamela,

so I am clear, making it "public" means available only to people that
have Wave right? I have embedded a wave on one of my web pages, and
made it public. I understand that to mean that any Wave user can join
in, and also edit it. But... people without Wave will get that screen
that tells them to view the Wave demo, and to log in, right?

Is there actually a way for waves that you have embedded on your
webpage to be allowed to be views by ALL people Wave users or not? I
am thinking of making a blog page on my site that is actually a Wave,
but that would be pointless if only Wave account holders could read my
posts. Well... that is... until the entire world have a Wave
account... evil google taking over the world laugh.

Hope these questions are not inappropriate or a bother. I just started
using Wave last night, and I have a million questions.

Cheers! Ricco
http://webulite.com
-----

Matias Molinas

unread,
Nov 24, 2009, 8:16:12 PM11/24/09
to google-...@googlegroups.com
interesting observations in:

http://groups.google.com/group/google-wave-api/browse_thread/thread/9374d9fb43193f05

but no answers :-(

2009/11/23 a webulite <webu...@gmail.com>:
> For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
>
>
>

Matias Molinas

unread,
Nov 24, 2009, 10:38:36 PM11/24/09
to google-...@googlegroups.com
Well the problem in Chrome 3 is that the state of the wave is not
initialized, but in firefox 3 the wave state of the same gadget is
properly initialized.
In firefox 3 the state of the wave is not null, it works correctly for
a few hours, then the states and therefore the content of the gadget
is lost :-(

2009/11/24 Matias Molinas <matias....@gmail.com>:

qMax

unread,
Nov 24, 2009, 11:20:17 PM11/24/09
to Google Wave API
If you use Require feature="wave-preview" it might not work in chrome.

On 25 ноя, 09:38, Matias Molinas <matias.moli...@gmail.com> wrote:
> Well the problem in Chrome 3 is that the state of the wave is not
> initialized, but in firefox 3 the wave state of the same gadget is
> properly initialized.
> In firefox 3 the state of the wave is not null, it works correctly for
> a few hours, then the states and therefore the content of the gadget
> is lost :-(
>
> 2009/11/24 Matias Molinas <matias.moli...@gmail.com>:
>
>
>
> > interesting observations in:
>
> >http://groups.google.com/group/google-wave-api/browse_thread/thread/9...
>
> > but no answers :-(
>
> > 2009/11/23 a webulite <webul...@gmail.com>:
> >> Pamela,
>
> >> so I am clear, making it "public" means available only to people that
> >> have Wave right? I have embedded a wave on one of my web pages, and
> >> made it public. I understand that to mean that any Wave user can join
> >> in, and also edit it. But... people without Wave will get that screen
> >> that tells them to view the Wave demo, and to log in, right?
>
> >> Is there actually a way for waves that you have embedded on your
> >> webpage to be allowed to be views by ALL people Wave users or not? I
> >> am thinking of making a blog page on my site that is actually a Wave,
> >> but that would be pointless if only Wave account holders could read my
> >> posts. Well... that is... until the entire world have a Wave
> >> account...  evil google taking over the world laugh.
>
> >> Hope these questions are not inappropriate or a bother. I just started
> >> using Wave last night, and I have a million questions.
>
> >> Cheers! Ricco
> >>http://webulite.com
> >> -----
>
> >> On Mon, Nov 23, 2009 at 9:34 AM, pamela (Google Employee)
> >> <pamela...@gmail.com> wrote:
> >>> Hi Matias -
> >>> Please make that Wave public if you would like others to be able to see it.
> >>> - pamela
>
> >>> On Mon, Nov 23, 2009 at 8:46 AM, Matias Molinas <matias.moli...@gmail.com>
> >>> wrote:
>
> >>>> He,
> >>>> yesterday my gadget for todolist work fine with with wave states, this
> >>>> day is not working.
>
> >>>> Could be due to a server problem?
>
> >>>> The wave where it worked yesterday and today you I can not retrieve
> >>>> the gadget state is:
>
> >>>>https://wave.google.com/wave/#restored:wave:googlewave.com!w%252B29Kw...

Matias Molinas

unread,
Nov 25, 2009, 7:14:40 AM11/25/09
to google-...@googlegroups.com
Thanks for the tip

2009/11/25 qMax <qwig...@gmail.com>:
> For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=en.
>
>
>
Reply all
Reply to author
Forward
0 new messages