Hi Matt-

I see two issues. One is that you should close the quote on the style tag.

<div id="debugDiv" style="width:100%;></div>

The other more major issue is that you try to pass in the debugDiv DOM
node before it exists. (The script tag is executed before the DOM is
loaded). You can either move your HTML above your script tag, or you
can move the miniMsg initialization into the body load callback.

- pamela

On Mon, Feb 15, 2010 at 1:58 PM, R Liu <[email protected]> wrote:

> Hello,
>
> I've followed the tutorial here:
> http://code.google.com/apis/wave/articles/gadgetdebugging.html
> and tried to use MiniMessages in the gadget.
>
> It doesn't work as the tutorial said so I copy the sample code from
> wave gadget tutorial and add the MiniMessages in the sample code to
> display mini messages... still not working. Maybe I am missing
> something?
>
> The new sample code with mini messages is here:
> http://rliu2.googlecode.com/svn/trunk/sample_ToDo/bidder.xml
>
> ----- I only add 4 lines of code to the original sample code -----
> 1.
> <Require feature="minimessage"/>
>  ===>in the ModulePrefs section
> 2.
> var msg = new gadgets.MiniMessage(__MODULE_ID__,
> document.getElementById("debugDiv"));
> ===>in the script section
> 3.
>  msg.createDismissibleMessage("waving!!!!!");
> ===>in  buttonClicked()
> 4.
> <div id="debugDiv" style="width:100%; height:200px; overflow:scroll"></
> div>
> ===>in html section
>
>
>
>
>
> --
> 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]<google-wave-api%[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