<?xml version="1.0" encoding="UTF-8" ?>
<Module>
  <ModulePrefs title="subscribeToDataChange Test" height="70" author="Google"
     author_email="calendar-gadget-questions@google.com">
   <Require feature="google.calendar-0.5" />
  </ModulePrefs>
  <Content type="html">
<![CDATA[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
<body>

<script>
function dataChangeCallback() {
  alert('New Data may be available');
}

// The gadget containers request that we do NOT run any JS inline.
// Instead, register a callback handler.
gadgets.util.registerOnLoadHandler(function() {
  google.calendar.subscribeToDataChange(dataChangeCallback);
});

</script>

</body>
</html>
]]>
  </Content>
</Module>
