Ciao a tutti,
ho creato una timeline con due bande.

Hallo,
I'm trying to create a Timeline with two bands.
It works fine on Safari Mac and on Firefox.
It doesn't work on Explorer (6 and 7).
I have an error: kinbe 347, char 1, Error: object expected, Code: 0.

I can see only borders and one band grey with no data and no scrolling.

This is "my" code:

<html>
   <head>
   <title>Test timeline</title>

       <script src="http://simile.mit.edu/timeline/api/timeline- 
api.js" type="text/javascript"></script>
     <script>
     var tl;
    function onLoad() {
     var eventSource = new Timeline.DefaultEventSource();
          var date = "Fri Nov 22 2006 13:00:00 GMT-0600"
   var bandInfos = [
         Timeline.createBandInfo({
         eventSource:    eventSource,
         date:           "Jun 28 2007 00:00:00 GMT",
         width:          "70%",
         intervalUnit:   Timeline.DateTime.DAY,
         intervalPixels: 100
     }),
     Timeline.createBandInfo({
         showEventText:  false,
         trackHeight:    0.8,
         trackGap:       0.2,
         eventSource:    eventSource,
         date:           "Jun 28 2007 00:00:00 GMT",
         width:          "30%",
         intervalUnit:   Timeline.DateTime.MONTH,
         intervalPixels: 80
     }),


   ];

   bandInfos[1].syncWith = 0;
   bandInfos[1].highlight = true;



   tl = Timeline.create(document.getElementById("tl"), bandInfos);
   tl.loadXML("example1.xml", function(xml, url)  
{ eventSource.loadXML(xml, url); });
}


var resizeTimerID = null;
function onResize() {
     if (resizeTimerID == null) {
         resizeTimerID = window.setTimeout(function() {
             resizeTimerID = null;
             tl.layout();
         }, 500);
     }
}

     </script>

   </head>
  <body onload="onLoad();" onresize="onResize();">
<div id="tl"style="height: 150px; border: 1px solid #aaa; font-size: 
10px; font-family:verdana"></div>
   </body>
</html>




And this is my xml:

<?xml version="1.0"?>
<data wiki-url="http://simile.mit.edu/shelf/"; wiki-section="Simile JFK  
Timeline">
     <event start="Sat May 20 1961 00:00:00 GMT-0600" title="prova  
modifica francesca">
     </event>
     <event start="Wed May 01 2005 00:00:00 GMT-0600" end="Thu May 02  
2005 00:00:00 GMT-0600" isDuration="true" title="Oswald moves to New  
Orleans">
          Oswald moves to New Orleans, and finds employment at the  
William <!-- This is "content" -->
          B. Riley Coffee Company. <i>ref. Treachery in Dallas, p 320</ 
i>  <!-- This is "content" -->
     </event>
         <event start="Wed May 01 2005 01:00:00 GMT-0600" end="Wed May  
01 2005 02:00:00 GMT-0600" isDuration="true" title="Prova francesca">
          Oswald moves to New Orleans, and finds employment at the  
William <!-- This is "content" -->
          B. Riley Coffee Company. <i>ref. Treachery in Dallas, p 320</ 
i>  <!-- This is "content" -->
     </event>
         <event start="Sun Jan 01 1989 00:00:00 GMT-0600" end="Sun Jan  
01 1989 00:01:00 GMT-0600" isDuration="True" title="Nasce Catellani  
Smith"/>

</data>


Can you help me??

Thanks!
fra

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to