Hi Alex -

That code looks okay to me. It is hard to know what is going on
without seeing your full gadget and a test wave.
It may be that you're using a Javascript library that is incompatible
with the Wave API, like Prototype.js.

- pamela

On Sun, Dec 20, 2009 at 3:30 PM, hvt_kg <[email protected]> wrote:
> Hi developer,
>
> Anyone see error relate wave.getState() is Null when using gadget API.
> My code below:
>
> function renderInfo() {
>                        var par = wave.getState().get('myParam');//Problems 
> occur here >>
> wave.getState() is Null.
>                        alert(par);
>
>                }
>                function init() {
>                        if (wave && wave.isInWaveContainer()) {
>                                wave.setStateCallback(renderInfo);
>                                wave.setParticipantCallback(renderInfo);
>                        }
>                }
>                gadgets.util.registerOnLoadHandler(init);
>
> that is bug from API or ,...? pls tell me
>
> thanks,
> Alex
>
> --
>
> 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.
>
>
>

--

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