Skip to Main Content
Google Wave: Up and Running
book

Google Wave: Up and Running

by Andres Ferrate
March 2010
Intermediate to advanced content levelIntermediate to advanced
304 pages
8h 23m
English
O'Reilly Media, Inc.
Content preview from Google Wave: Up and Running

Appendix C. Sample Wave Embed Code

The following is the complete, uninterrupted source code for the wave embed examples covered in Chapter 8.

Enabling the Google Wave Toolbar in an Embedded Wave

You can browse or check out the source code from http://code.google.com/p/google-wave-embed-examples.

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"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Wave Embed Example</title> <script src="http://wave-api.appspot.com/public/embed.js" type="text/javascript"></script> <style type="text/css"> body { font-family: arial, verdana, sans-serif; } #container { background: #fafafa; border: 1px solid #748F8A; height: 100%; padding: 10px; width: 100%; } #wrapper { color: #333333; height: 350px; margin: 0px auto; width: 500px; } </style> <script type="text/javascript"> var waveUrl = 'https://wave.google.com/wave/'; var waveId = 'googlewave.com!w+bvQu5APyH'; var waveContainer; function load() { waveContainer = new WavePanel(waveUrl); waveContainer.setUIConfig('#ffffff', '#333333', 'Arial', '10pt'); waveContainer.loadWave(waveId); waveContainer.init(document.getElementById('container'), showToolbar); } function showToolbar() { waveContainer.setToolbarVisible(true); } </script> </head> <body onLoad="load()"> <div id="wrapper"> <h2>Wave Embed Example #1</h2> <h3>Showing the Google Wave Toolbar</h3> <div id="container"></div> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google™ Search and Tools in a Snap

Google™ Search and Tools in a Snap

Preston Gralla
SUSE™ Linux 10 Unleashed

SUSE™ Linux 10 Unleashed

Michael McCallister

Publisher Resources

ISBN: 9781449378646Errata PagePurchase book