Dear Friends,

I am trying to set up the start and end date of the timeline by the
following code written inside the onLoad() method:

         var theme1 = Timeline.ClassicTheme.create();
         theme1.event.bubble.width = 250;
         theme1.timeline_start = new Date(Date.UTC(1894, 0, 1));
         theme1.timeline_stop  = new Date(Date.UTC(2030, 0, 1));

 var date = Timeline.DateTime.parseGregorianDateTime(new Date());

         var bandInfos = [
            Timeline.createHotZoneBandInfo({
               width:          "80%",
               intervalUnit:   Timeline.DateTime.YEAR,
               intervalPixels: 200,
               zones:          zones,
               eventSource:    eventSource,
               date:           date,
               timeZone:       -6,
               theme:          theme1
            }),
            Timeline.createHotZoneBandInfo({
                 showEventText:  false,
               width:          "20%",
               intervalUnit:   Timeline.DateTime.DECADE,
               intervalPixels: 200,
               zones:          zones2,
               eventSource:    eventSource,
               date:           date,
               timeZone:       -6,
               overview:       true
            })
         ];
         bandInfos[1].syncWith = 0;
         bandInfos[1].highlight = true;

         tl = Timeline.create(document.getElementById("history"),
bandInfos, Timeline.HORIZONTAL);
         tl.loadXML("D:/NitPlayground/JavaScriptPlayground2/Timeline1/
xml/example.xml", function(xml, url) { eventSource.loadXML(xml,
url); });

However, I am not able to lock the timeline within start and end
dates. I can scroll beyond the start and end dates specified by
timeline_start and timeline_stop attributes of Theme object. I've
tried many things in the code given above but that was of no help to
fix the issue.
Can anybody help me out with where am I commiting the mistake or if I
am missing some code that is additionally required?

Thank You,
Nitin




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to