aperhyul / simile-widgets

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

Timeline display problems in Firefox 4.0, IE7+, Chrome #437

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by katerina...@gmail.com on 6 May 2011 at 10:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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.

Original comment by gemak...@gmail.com on 31 May 2011 at 8:08

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:37

GoogleCodeExporter commented 9 years ago
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

Original comment by francisb...@gmail.com on 12 Jan 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Has there been an update on this issue?   I'm looking into Timeline and am 
currently stuck here.

Original comment by chris.fa...@gmail.com on 21 Mar 2013 at 6:37

GoogleCodeExporter commented 9 years ago
I had the same issue, which I discovered was from me trying to load the JS at 
the bottom of the page rather than the header like the demos show.  I moved the 
following to the head section of the page and all works all the time:

<script>
    Timeline_ajax_url = "/timeline/timeline_ajax/simile-ajax-api.js";
    Timeline_urlPrefix = '/timeline/timeline_js/';
    Timeline_parameters = 'bundle=true';
</script>
<script src="/timeline/timeline_js/timeline-api.js?bundle=true" 
type="text/javascript"></script>

Original comment by MattFrom...@gmail.com on 4 Jul 2013 at 2:10

GoogleCodeExporter commented 9 years ago
Hi Everyone,

There is an issue with the Firefox 31 or above version where i am not able to 
see the timeline of my product.

Please post your inputs and suggestions.

Thanks,
Sagar

Original comment by sagarsur...@gmail.com on 18 Nov 2014 at 7:50