borndangerous / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE. IE6 exception on very simple timeline #164

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Thank you for the great project.

IE6 throws exception on very simple timeline consisting of two bands.
Top band loads ok.
Bottom band, configured identicaly to the top band and loading exactly same
content, but via different eventSource throws exception.

Firefox works ok.
Could you please tell me how I can work around this problem.

--------------------

WinXP, project: http://www.offtopia.net/dam/tl.html

[Submitted by Alexander Nikolaev on simile.mit.edu] 

var tl;
function onLoad() {
var eventSource = new Timeline.DefaultEventSource(0);
var historyEvents = new Timeline.DefaultEventSource(0);

var d = Timeline.DateTime.parseGregorianDateTime("1700");

var bandInfos = [
Timeline.createBandInfo({
width: "50%",
intervalUnit: Timeline.DateTime.DECADE,
intervalPixels: 100,
date: d,
eventSource: eventSource
}),
Timeline.createBandInfo({
width: "50%",
intervalUnit: Timeline.DateTime.DECADE,
intervalPixels: 100,
date: d,
eventSource: historyEvents
})
];

bandInfos[1].syncWith = 0;
bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout());

tl = Timeline.create(document.getElementById("my-timeline"), bandInfos);
tl.loadJSON("e1.js", function(json, url) {
eventSource.loadJSON(json, url);
});
tl.loadJSON("e1.js", function(json, url) {
historyEvents.loadJSON(json, url);
});

Original issue reported on code.google.com by GabrielR...@googlemail.com on 6 Apr 2009 at 1:50

GoogleCodeExporter commented 9 years ago
Same here.

After trial and error it seems to be an IE6 issue with the JSON data format. 
Here my
solution:
- use '#FF0000' instead of 'red' for color-values (JSON and XML)
- use 
http://code.google.com/p/simile-widgets/wiki/Timeline_EventSourceJSON_jsDate
(without the 'dateTimeFormat': 'iso8601' declaration) instead of RFC 2822 
format (JSON)

Original comment by claas.ru...@googlemail.com on 7 Oct 2009 at 11:29