New issue 437 by katerina...@gmail.com: Timeline display problems in
Firefox 4.0, IE7+, Chrome
http://code.google.com/p/simile-widgets/issues/detail?id=437
Simile timeline fails to display in Firefox 4.0, IE7+, Chrome.
Timeline is loaded dynamically as follows:
########mytimeline.js###########
4. $(window).load(function() {
...
8. Timeline.loadJSON( test, function(json, url) {
9. var eventSource = new Timeline.DefaultEventSource();
10. eventSource.loadJSON(json, url);
...
}
Multiple errors occur:
Message: Object doesn't support this property or method
Line: 8
Char: 3
Code: 0
URI: ../script/mytimeline.js
Message: 'Timeline.strings' is null or not an object
Line: 6
Char: 1
Code: 0
URI: /script/timeline/timeline_js/scripts/l10n/de/timeline.js
Message: 'Timeline.GregorianDateLabeller.monthNames' is null or not an
object
Line: 6
Char: 1
Code: 0
URI: ../timeline/timeline_js/scripts/l10n/de/labellers.js
The error occurs even if default locale is used. Patch regarding related
reported issues 424 and 425 have also been applied with no success.
I get similar errors in FF 3.6.17
Timeline.strings is undefined
Timeline.GregorianDateLabeller is undefined
Timeline.GregorianDateLabeller.monthNames["en"] = [
labellers.js (Zeile 6)
while I get in Chrome V11:
Uncaught TypeError: Cannot set property 'en' of undefined
/dc-javascript/timeline/timeline_js/scripts/l10n/en/labellers.js:6
Uncaught TypeError: Cannot read property 'monthNames' of undefined..
- but only if bundle=true is NOT set, i.e. I try to read from the source
files.
The solution for me was as the folder styles with the css files was missing
entirely and the js files in scripts as well, except the files in l10n, I
added the missing files manually. This is because they are not copied to
the output dir in the build.xml, target create_output2 (this seems to be a
bug). After I added those files all is working as expected, debugging is
now for the source files...
I get similar errors in FF 3.6.17
Timeline.strings is undefined
Timeline.GregorianDateLabeller is undefined
Timeline.GregorianDateLabeller.monthNames["en"] = [
labellers.js (Zeile 6)
while I get in Chrome V11:
Uncaught TypeError: Cannot set property 'en' of undefined
/dc-javascript/timeline/timeline_js/scripts/l10n/en/labellers.js:6
Uncaught TypeError: Cannot read property 'monthNames' of undefined..
- but only if bundle=true is NOT set, i.e. I try to read from the source
files.
The solution is as extracting timeline_source.zip as well (besides
timeline_libraries.zip), else the folder styles with the css files is
missing and the js files in scripts as well, except the files in l10n.
I have this issue with latest trunk in Firefox9 & Chrome.
I think the issue is the same as was solved by OpenLayers with their
guaranteed execution order:
http://trac.osgeo.org/openlayers/ticket/2933