Arjunsos / simile-widgets

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

TIMELINE: classname attribute in XML source does not add a class attribute in HTML #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create en event with a classname attribute in an XML data source
2. The HTML output created by Timeline does not contain DIV elements with a 
class attribute

What is the expected output? What do you see instead?
The DIV representing that event in the timeline should have a class attribute 
matching the classname 
given by the data source.

What version of the product are you using? On what operating system?
Current timeline-api.js

Original issue reported on code.google.com by mg.sche...@gmail.com on 26 Sep 2008 at 3:19

GoogleCodeExporter commented 9 years ago

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 7:01

GoogleCodeExporter commented 9 years ago
Hi,

maybe this could help a bit.

I notice that if you use the library at:
http://simile.mit.edu/timeline/api/timeline-api.js, you cannot set the classname
attribute from the xml (actually also using the loadJSON function).

However, from the web site
(http://www.simile-widgets.org/timeline/examples/test_example/test.html) you 
can live
experiment a nice timeline that correctly uses thie feature (loading from XML 
the
classpath attribute).

If you look in the code the comment says:
<!-- To use this file on your own system, replace ../../api/timeline-api.js 
with  -->
<!--     http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js        
  -->

but the actual library linked to the page is different:
http://www.simile-widgets.org/timeline/api/timeline-api.js?bundle=true

And guess what? It works fine, also loading xml files.

Now the question is: what is the right version/copy of the library? Could you 
also
please to correct or change the comment inside the page to reflect the right 
situation?

Many thanks.

Cheers.

-- Alessio

PS: really good job !!

Original comment by alessiog...@gmail.com on 26 Nov 2009 at 2:54