SIMILE TIMELINE I want to adjust the height of the timeline container to best fit the plotted data.
As a work around I've written a JS method that iterates through the items in the timeline to identify the Top Position attribute with the greatest value. I add a few em's to compensate for the bottom band, assign the new height to the timeline div container, then call "layout()" to refresh the timeline. My problem is that I can't get scripting control immediately after the data is loaded. After LoadXML() plots the data to the timeline, all scripting ends (I assume this has something to do with asynchronous loading, but I don't know how to work around it). I can't call my method after the onLoad() event, because my method then fires BEFORE the data is loaded (i.e. the timeline is painted, but the data is not loaded). Does anyone know how to call a method immediately after data is loaded, or whether or not there's an easier solution? Working example: http://familyware.com/timeline/timeline.aspx Instead of a user click, I want to resize the timeline automatically. John Ward _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
