Source

wave gadgets / wavehello2.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Hello Wave!" >
  <Require feature="wave" />
  </ModulePrefs>
<Content type="html"><![CDATA[
  <input id="name"><button id="push-button">PUSH</button>
    <span id="message"></span>
  <script>
    function init() {
        var b = document.getElementById('push-button');
        b.onclick = function() {
            var name = document.getElementById('name').value;
            document.getElementById('message').innerHTML = wave.getViewer().getDisplayName() + 'Say, "Hello, ' + name + '"';
        }
    }
    gadgets.util.registerOnLoadHandler(init);
    </script>
]]></Content>
</Module>