blakeprendergast / simile-widgets

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

Patch for /ajax/trunk/src/webapp/api/simile-ajax-api.js #425

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
avoid asynchronous js loading in MSIE, Safari, Chrome...

Original issue reported on code.google.com by fabio.gi...@gmail.com on 2 Feb 2011 at 10:45

Attachments:

GoogleCodeExporter commented 8 years ago
full source attached

Original comment by fabio.gi...@gmail.com on 3 Feb 2011 at 12:01

Attachments:

GoogleCodeExporter commented 8 years ago
NB: the file attached to previous comment patches the current timeline 
dependency (simile ajax 2.2.1)

Original comment by fabio.gi...@gmail.com on 3 Feb 2011 at 7:38

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
How do you apply the patch?

Original comment by joannek...@gmail.com on 9 Dec 2012 at 5:14

GoogleCodeExporter commented 8 years ago
The attached file simile-ajax-api.js replaces the 2.2.1 version. You need to 
reference a local copy of simile-ajax replacing the file in the library e.g.:

<script type="text/javascript">var 
Timeline_ajax_url="./simile/ajax/2.2.1/simile-ajax-api.js?bundle=true";</script>
<script src="./simile/timeline/timeline-api.js?bundle=true" 
type="text/javascript"></script>

Original comment by fabio.gi...@gmail.com on 9 Dec 2012 at 9:54

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thank you. I have tried your solution but still get the "Error: 'null' is null 
or not an object" on var yearStr = strDate.substr(0, 4). I have read that I 
should hard code the locale to "en" but I am not sure how to do that. Do you 
have any suggestions? I really appreciate your help! I have been working on 
this for a couple of months now and feel I am so close!

Original comment by joannek...@gmail.com on 10 Dec 2012 at 5:04

GoogleCodeExporter commented 8 years ago
I think you need to synchronize your code testing the load completion first, 
although the reported error suggests you are feeding broken data too...

Original comment by fabio.gi...@gmail.com on 10 Dec 2012 at 11:49