load problem fixed

187 views
Skip to first unread message

David Karger

unread,
May 17, 2013, 2:32:38 PM5/17/13
to SIMILE Widgets
The problem people have encountered with script loads was traced to a
DNS misconfiguration that was fixed this morning. Most of you should
now see things working again; some of you may need to wait a little bit
longer for DNS propagation to happen.

Jörn Clausen

unread,
May 19, 2013, 9:12:03 AM5/19/13
to simile-...@googlegroups.com
Hello David!

Can you tell us what kind of misconfiguration that was? I.e., what
name should resolve to what, and eventually what was the wrong
resolution?

So far, my mashup still does not work, and the one mentioned by David
Van Fleet also does not work for me. When loading his page at
http://people.cti.asu.edu/vanfleet/history/mgt_timeline.htm, this URL

http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js?bundle=true

is not found. In my case, loading
http://static.simile.mit.edu/timeline/api/timeline-api.js still is
followed by access to

http://api.simile-widgets.org/ajax/2.2.1/simile-ajax-api.js
http://api.simile-widgets.org/ajax/2.2.1/simile-ajax-bundle.js

and so on, i.e. I get the wrong version.

The main reason I haven't switched to a more recent version of
Timeline is this code fragment:

Timeline.DurationEventPainter.prototype._showBubble = function(x, y, evt) {
GEvent.trigger(evt.marker, 'click');
map.panTo(evt.marker.getPoint());
}

where I redirect a click on an object in the timeline to trigger a
Google Maps event. If somebody can tell me how to do this in a more
recent version of Timeline, I would try to update my mashup. And yes,
I know should switch to Timemap.js instead...

Joern
> --
> You received this message because you are subscribed to the Google Groups
> "SIMILE Widgets" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to simile-widget...@googlegroups.com.
> To post to this group, send email to simile-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/simile-widgets?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Joern Clausen
http://thebloeg.blogspot.com/
http://www.oe-files.de/photography/

jjon

unread,
May 19, 2013, 12:49:17 PM5/19/13
to simile-...@googlegroups.com, joe...@googlemail.com
Dear Jörn,

This works for me:

Using it does, however, load the ajax 2.2.1 library by default:

Where there is also a version 2.2.3 at http://api.simile-widgets.org/ajax:

This appears to be because the location of http://api.simile-widgets.org/ajax/2.2.1 is hard coded in line 257

        var url = useLocalResources ?

best,
Jon

David Van Fleet

unread,
May 19, 2013, 2:13:57 PM5/19/13
to simile-...@googlegroups.com
but it still doesn't load my xml file

jjon

unread,
May 19, 2013, 2:47:08 PM5/19/13
to simile-...@googlegroups.com, dr.va...@gmail.com
David,

There is nothing at this address:

Try this:
 
In that file you'll see the following in the header:

 *  To run from the MIT copy of Timeline:
 *  Include this file in your HTML file as follows:
 *
 *    <script src="http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js" 
 *     type="text/javascript"></script>
 *
 *
 * To host the Timeline files on your own server:
 *   1) Install the Timeline and Simile-Ajax files onto your webserver using
 *      timeline_libraries.zip or timeline_source.zip
 * 
 *   2) Set global js variables used to send parameters to this script:
 *        Timeline_ajax_url -- url for simile-ajax-api.js
 *        Timeline_urlPrefix -- url for the *directory* that contains timeline-api.js
 *          Include trailing slash
 *        Timeline_parameters='bundle=true'; // you must set bundle to true if you are using
 *                                           // timeline_libraries.zip since only the
 *                                           // bundled libraries are included


So it appears that you only need to set the Timeline_urlPrefix url if you're hosting the files on your own server. If you are not, then including the file at http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js is all you need to do.

best,
Jon
Message has been deleted

David Karger

unread,
May 19, 2013, 2:24:47 PM5/19/13
to simile-...@googlegroups.com, David Van Fleet
If you are having trouble because the wrong version of simile-ajax is loading, I think you can load it explicitly yourself first (before loading timleine) and it will then not load the wrong version.

Jörn Clausen

unread,
May 21, 2013, 4:34:17 PM5/21/13
to simile-...@googlegroups.com
Where from? When requesting

https://api.simile-widgets.org/timeline/

only version 2.3.1 seems to be served by api.simile-widgets.org. Under

https://api.simile-widgets.org/ajax/

versions 2.2.1, 2.2.2 and 2.2.3 are available. The address

https://api.simile-widgets.org/deprecated/

shows an info page, so it is unclear if there are subdirectories
containing the stuff I am looking for. And searching at

http://static.simile.mit.edu/timeline/api/

does not reveal any other versions either. Version 1 seems to be gone
completely.

David Van Fleet

unread,
May 22, 2013, 11:40:56 AM5/22/13
to jjon, simile-...@googlegroups.com

jjon

unread,
May 22, 2013, 12:46:25 PM5/22/13
to simile-...@googlegroups.com, jjon, dr.va...@gmail.com
David, 

Notice what your page is asking for:

Failed to load resource: the server responded with a status of 404 (Not Found) http://api.simile-widgets.org/timeline/2.3.1/timeline-api.jsstyles/timeline.css
Failed to load resource: the server responded with a status of 404 (Not Found) http://api.simile-widgets.org/timeline/2.3.1/timeline-api.jsstyles/ethers.css

And so on.

These URLs make no sense. They are the result of your assigning a urlPrefix:


This isn't a prefix, it's the full path to the timeline-api.js file. You don't need this. If you were hosting the timeline software locally (which might be a good idea), this would be the way point a browser at the local source files. But if you're getting the source from the api.simile-widgets.org host, then a single call to http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js is all you need.


Using your xml datafile, I constructed this bare minimum timeline which runs fine on my localhost:

<html> <head> <script src="http://api.simile-widgets.org/timeline/2.3.1/timeline-api.js" type="text/javascript"></script> <script> var tl; function onLoad() { var eventSource = new Timeline.DefaultEventSource(); var bandInfos = [ Timeline.createBandInfo({ eventSource: eventSource, date: "1903", intervalUnit: Timeline.DateTime.DECADE, width: "100%", intervalPixels: 500 }) ]; tl = Timeline.create(document.getElementById("history"), bandInfos); tl.loadXML("History.xml", function(xml, url) { eventSource.loadXML(xml, url); }); } </script> </head> <body onload="onLoad();"> <div id="history" class="timeline-default" style="height: 600px"></div> </body> </html>

Ted Benson

unread,
May 22, 2013, 2:50:35 PM5/22/13
to simile-widgets, jjon, dr.va...@gmail.com
Hi David,

Can you please try modifying your prefix line to the following:


I believe that will be a temporary fix to your problem.

Regards,
Ted



--
You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simile-widget...@googlegroups.com.
To post to this group, send email to simile-...@googlegroups.com.
Visit this group at http://groups.google.com/group/simile-widgets?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Edward Benson
http://people.csail.mit.edu/eob/
@edwardbenson

David Van Fleet

unread,
May 26, 2013, 5:06:00 PM5/26/13
to Ted Benson, simile-widgets, jjon
many thanks
I think it is working again now

http://people.cti.asu.edu/vanfleet/history/mgt_timeline.htm

David Van Fleet

unread,
May 26, 2013, 5:06:26 PM5/26/13
to simile-widgets
many thanks
I think it is working again now

http://people.cti.asu.edu/vanfleet/history/mgt_timeline.htm
Reply all
Reply to author
Forward
0 new messages