Hi
I am not sure whether you see a msg I mailed last night. I paste it below,
sorry if I am mailing twice.
------------------
hello
my first post. Very nice tool, congratulation to all.
My question is about timeline.loadXML.
I define an array xml = (file1.xml, file2.xml, ...) and try to do the
following:
var eventSource = new Array();
for (key in xml) {
if (xml.hasOwnProperty(key)) {
eventSource[key]= new Timeline.DefaultEventSource(0); }}
and
for (key in xml) {
if (xml.hasOwnProperty(key)) {
timeline.loadXML(xml[key], function(xml, url)
{eventSource[key].loadXML(xml, url); }); }}
It almost works, but not exactly so. It seems that entries from
different .xml files turn out in the same eventSource.
Note that if I define
timeline.loadXML(xml[key1], function(xml, url)
{eventSource[key1].loadXML(xml, url); });
timeline.loadXML(xml[key2], function(xml, url)
{eventSource[key2].loadXML(xml, url); }); and so on,
I get what I wish.
Do you see what it could be wrong?
Help is welcome
thanks cheers
mario
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.