<?xml version="1.0" encoding="UTF-8"?>
<Module>
  <ModulePrefs title="Simple Dynamic Writing of Result in a Visualization Gadget">
  </ModulePrefs>
  <UserPref name="PW_API_KEY" 
     display_name="API key for ProgrammableWeb"
     datatype="string"
     required="true">
  </UserPref>    
  <UserPref name="_table_query_url" display_name="Data source URL" required="true"/>
  <Content type="html"><![CDATA[
    <div id="content_div">Loading...</div>

    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <script type="text/javascript">
      google.load("visualization", "1");
      function initialize() {
        // Called when the API is loaded
        var html = "Hello World";
        _gel('content_div').innerHTML = html;
      }
      google.setOnLoadCallback(initialize); // Set callback to run when API is loaded
    </script>
    ]]>
 </Content>
</Module>
