Anyone know how to dynamically load events based on the
MaxVisibileDate or some other marker related to the scroll listener?
I want to clear and load more events when the end of the max visible
date or perhaps another marker. I have been playing around with code
that looks like this:
var maxVisDate = tl.getBand(0.getMaxVisibleDate();
tl.getBand(0).addOnScrollListener(function(band) {
if(band.getCenterVisibleDate() > maxVisDate)
{
alert('reload more events!');
//load events with JQuery
$.getJSON('myJSONEvents.js', function(data) {
myEvents.clear();
myEvents.loadJSON(data, url);
});
}
});
Dave
--
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.