PDA

View Full Version : Google wave and GXT



cutout33
18 Jan 2010, 5:30 AM
Hi all,

I was wondering if it is possible to embed google wave in my application, I tried but it crashes if I added this code in app.html


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

here is the link for embedding wave
http://code.google.com/apis/wave/embed/guide.html

does anyone have ideas on this???

Arno.Nyhm
18 Jan 2010, 8:19 AM
what measn "crashes"?

how your full app.html page including the wave looks like?
did it works in your browser as standalon (no gxt stuff)?

cutout33
18 Jan 2010, 8:30 AM
Will it does work as stand alone, just get the embed code and save it in html file...

For my application it is already working fine but what I want is to embed Google wave in a tab!

so my app.html is fine, I don't have access at the moment to the code to post it, maybe tomorrow I'll do.

Crashes means that my application wont even start it just gives me the default sun VM crash report! with no exceptions!

Also I have tried to put the embed code in HTMLContainer and add it to the tab, this did not crash nor worked =P~

Do you have any idea on how can I embed this code


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Wave Embed API Example: Simple Wave</title>
<script src="http://wave-api.appspot.com/public/embed.js" type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
var wavePanel = new WavePanel('http://wave.google.com/a/wavesandbox.com/');
wavePanel.loadWave('wavesandbox.com!w+waveID');
wavePanel.init(document.getElementById('waveframe'));
}
</script>
</head>
<body onload="initialize()">
<div id="waveframe" style="width: 500px; height: 100%"></div>
</body>
</html>

into a tab?