Hello all.
I've been working on a web application that utilizes the simile
timeline library to, among other things, allow users to create
timelines and dynamically add events to those timelines. The events
are stored in a MySQL database and rendered to XML with ruby, then
loaded into the timeline with a call to Timeline.loadxml().
The timelines render fine in Firefox, Camino, and Safari, and an empty
timeline (one containing no events) renders fine in IE6/IE7.
Timelines with events, however, fail to render in IE6/IE7.
I backtraced the javascript error to, ultimately, the following lines
in bundle.js
--this._highlightDiv.style.left=startPixel+'px';
--this._highlightDiv.style.width=length+'px';
in this.position() around lines 3080-82. Both variables have values
of 'NaN'
Those errors seem to stem from
--
Timeline
.GregorianEtherPainter
.prototype.setHighlight=function(startDate,endDate){
--this._highlight.position(startDate,endDate);
--}
also in bundle.js, which also have values of 'NaN', around line 2574.
Those are in turn called from
this._etherPainter.setHighlight(startDate,endDate); around line 842
(also 'Nan') and this._positionHighlight();
around line 471.
The XML passed to Timeline.loadXML is in the form:
<data>
<event start="Fri, 11 Jan 2008 00:00:00 +0000" title="complaint filed">
<br/><a href='#' onclick='editEvent(9)'>Edit</a> | <a href='/timeline/
6/delete_event/9' onclick="return confirm('Are you sure? It'll be gone
for good.');">Delete</a>
</event>
</data>
I've tried messing with the date formats and checking the escape
characters, although I must admit, I am not by training a javascript
person. I inherited this bug from someone else.
Any help is much appreciated!
Thanks,
Drew Schimmel
[EMAIL PROTECTED]
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general