beginner trying to embed....

1 view
Skip to first unread message

Jlcarroll

unread,
Oct 1, 2009, 6:09:25 PM10/1/09
to Google Wave API
So I was trying to embed a wave, and I downloaded the hello world code
here:

http://code.google.com/apis/wave/embed/guide.html

and then I tried to change things to point at my wave... I changed the
initialize as follows:

function initialize() {
var wavePanel = new WavePanel("https://wave.google.com/wave/");
wavePanel.loadWave("252BQXjoHNhAA.9");
wavePanel.init(document.getElementById('waveframe'));
}

I get a blank page....

If I change the var wavePanel to add a #restored to the end I get my
whole interface with a bland wave opened... I think that I understand
what is happening there, so I assume that my problem is with the id, I
am loading an empty wave because my wave id is wrong?

I tried a few variants for the wave id as well such as:

wave:googlewave.com!w%252BQXjoHNhAA.9

googlewave.com!w%252BQXjoHNhAA.9

and

!w%252BQXjoHNhAA.9

The instructions say to use the debug button to find the wave id, but
that isn't there any more in the preview release. From what I read on
here, it is now in the url, but it is not entirely clear how much of
that url should be included in the wavePanel.loadWave field.

Thanks.

Graham Anderson

unread,
Oct 1, 2009, 8:21:47 PM10/1/09
to google-...@googlegroups.com
On Friday 02 October 2009 00:09:25 Jlcarroll wrote:
>So I was trying to embed a wave, and I downloaded the hello world code
>here:
>
>http://code.google.com/apis/wave/embed/guide.html

Sometimes the requested files in the the embedded iframe timeout. It's not
perfect by any means.

You can add the temporary bot blog...@appspot.com to your wave, it will
report the wave ID and some sample embed markup that is reported to work. You
can probably modify/tweak things from there.

--
“Experience is the name everyone gives to their mistakes.”
☘ Oscar Wilde

Van Riper

unread,
Oct 1, 2009, 8:46:11 PM10/1/09
to google-...@googlegroups.com
On Thu, Oct 1, 2009 at 5:21 PM, Graham Anderson
<graham....@gmail.com> wrote:
>
> On Friday 02 October 2009 00:09:25 Jlcarroll wrote:
>>So I was trying to embed a wave, and I downloaded the hello world code
>>here:
>>
>>http://code.google.com/apis/wave/embed/guide.html
>
> Sometimes the requested files in the the embedded iframe timeout. It's not
> perfect by any means.
>
> You can add the temporary bot blog...@appspot.com to your wave, it will
> report the wave ID and some sample embed markup that is reported to work. You
> can probably modify/tweak things from there.

Thanks for that suggestion. I just added it to one of my preview
account waves and it spits this out:

Paste this snippet wherever you want the wave to show up:

<div id="wave" style="width: 560px; height: 420px"></div>

And this one right before your </body> tag:

<script
type="text/javascript"
src="http://wave-api.appspot.com/public/embed.js">
</script>
<script type="text/javascript">
var wave =

wave.setUIConfig('white', 'black', 'Arial', '13px');
wave.loadWave('googlewave.com!w+xqoDO1w0A');
wave.init(document.getElementById('wave'));
</script>

Hope this helps.

-Van

Craig

unread,
Oct 21, 2009, 9:25:32 AM10/21/09
to Google Wave API
Didn't work for me first time either. Figured out it doesn't work when
accessing the HTML from your file system. Whack the embed html on a
web server somewhere, that should sort it.

Cheers
Craig


On Oct 2, 8:46 am, Van Riper <van.ri...@gmail.com> wrote:
> On Thu, Oct 1, 2009 at 5:21 PM, Graham Anderson
>
> <graham.ander...@gmail.com> wrote:
>
> > On Friday 02 October 2009 00:09:25 Jlcarroll wrote:
> >>So I was trying toembeda wave, and I downloaded the hello world code
> >>here:
>
> >>http://code.google.com/apis/wave/embed/guide.html
>
> > Sometimes the requested files in the the embedded iframe timeout. It's not
> > perfect by any means.
>
> > You can add the temporary bot blog-...@appspot.com to your wave, it will
> > report the wave ID and some sampleembedmarkup that is reported to work. You

Sam Osborne

unread,
Oct 21, 2009, 1:10:50 PM10/21/09
to google-...@googlegroups.com
Oh really?? That's really convenient! Cheers!

2009/10/21 Craig <crai...@gmail.com>
Reply all
Reply to author
Forward
0 new messages