Friday, October 2, 2009

Google Wave: Embedding  

This post is just to demo the use of the Google Wave Embed API, to embed a Google Wave on this blog. At the time of this writing, you will only be able to see the Wave on this blog, if you have access to Google Wave.



The code I've used for embedding this wave here is -

<div style="width: 450px; height: 200px;" id="mywaveframe"></div>
<script src="http://wave-api.appspot.com/public/embed.js" type="text/javascript"></script>
<script type="text/javascript">
var wavePanel = new WavePanel('http://wave.google.com/wave/');
wavePanel.setUIConfig('white', 'black', 'Verdana', '10px');
wavePanel.loadWave('googlewave.com!w+RhSPBtyUB');
wavePanel.init(document.getElementById('mywaveframe'));
</script>

Labels: ,

Anonymous Anastasia said...
Oh my god!

You are a life saver! I ahve been fuckign aroudn with google wave for DAYS! it kept embeding wrong, jsut copied your script and it's perfect- even the official google API stuff was screwed up! you are a genious thank you thank you thank you!