Schedule Examples


      function init()
      {
        var data = "<schedule>"
          + "  <version>0.1</version>"
          + "  <start>March 23, 2010 09:00:00</start>"
          + "  <end>March 23, 2010 17:00:00</end>"
          + "  <units>h</units>"
          + "  <show_key>n</show_key>"
          + "  <types>"
          + "    <type value='Meeting' title='Meeting' class='event-meeting'></type>"
          + "    <type value='VC' title='Video Conference' class='event-vc'></type>"
          + "  </types>"
          + "  <rows>"
          + "    <row id='101' title='Room 1'></row>"
          + "    <row id='102' title='Room 2'></row>"
          + "    <row id='103' title='Room 3'></row>"
          + "  </rows>"
          + "  <events>"
          + "    <event id='1' title='Development Team Meeting' row='Room 1' type='Meeting' start='March 23, 2010 10:00:00' end='March 23, 2010 12:00:00' description='Monthly Development Team Meeting' url=''></event>"
          + "    <event id='2' title='Project Meeting' row='Room 2' type='Meeting' start='March 23, 2010 09:30:00' end='March 23, 2010 11:15:00' description='Weekly Project Meeting' url=''></event>"
          + "    <event id='3' title='Casework Video Conference' row='Room 2' type='VC' start='March 23, 2010 13:30:00' end='March 23, 2010 15:00:00' description='Casework Progress Report by Video Conference' url='http://www.google.com/'></event>"
          + "  </events>"
          + "</schedule>";
        var callback = function( id, start_at, end_at ) 
        {
          alert( "row id: " + id + " from " + start_at.getHours() + ":" + start_at.getMinutes() 
               + " to " + end_at.getHours() + ":" + end_at.getMinutes() );
        };
        draw_schedule( 'schedule1', data, callback );
      }