bgarrels / simile-widgets

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

Manually added events are not shown #303

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Write a script statement to add an event
See statement below.

What is the expected output? Display of a new event.
What do you see instead? No new event.

What version of the product are you using? On what browser and what
operating system? Happens with windows server 2003, IE6 and Firefox 2/3.

Please provide any additional information below.

Tried two different versions, because - from the docs - its not clear,
which way to go.

a) The statements are:

var es = tl.getBand(0).getEventSource();  //tl==Timeline.
var ev = new Timeline.DefaultEventSource.Event
        (
            "Mar 27 2009 02:00:00 GMT", //start
            "Mar 27 2009 02:00:00 GMT", //end
            "Mar 27 2009 02:00:00 GMT", //latestStart
            "Mar 27 2009 02:00:00 GMT", //earliestEnd
            true,               //instant
            "Event!",           //text
            "Description for Event"     //description
        );
es.add(ev);
//tl.layout();  //does not help

b) The statements are:

var es = tl.getBand(0).getEventSource();
var ev = new Timeline.DefaultEventSource.Event
(
{
    'id': "4711",
    'start': "Mar 27 2009 02:00:00 GMT",        //start
    'end': "Mar 27 2009 02:00:00 GMT",      //end
    'latestStart': "Mar 27 2009 02:00:00 GMT",  //latestStart
    'earliestEnd': "Mar 27 2009 02:00:00 GMT",  //earliestEnd
    'instant': true,                //instant
    'text': "Event2",               //text
    'description': "Description for Event 2"    //description
}
);
es.add(ev);
//tl.layout();  //does not help

This should depend on the version. But both methods does not work.

Thanks anyway,
br--mabra

Original issue reported on code.google.com by mabr...@gmail.com on 18 Jul 2009 at 11:37

GoogleCodeExporter commented 9 years ago
You are missing event._fire("OnAddMany") instruction after the event.add

Original comment by litobyte...@gmail.com on 19 Jul 2009 at 8:48

GoogleCodeExporter commented 9 years ago
Hi !

Thanks for the tip.
But this does not work.
For which of my variants [a or b] is you tip?
I got "object does not support this property or method" in IE.
Which library version do I need to make it running?

Thanks a lot.

br--mabra

Original comment by mabr...@gmail.com on 2 Aug 2009 at 5:37

GoogleCodeExporter commented 9 years ago
I used v.2.30 we should not use the issue tracker as a forum, so please, 
post your enquiries here:

http://groups.google.com/group/simile-widgets?pli=1

I will eventually post my code there for you to see.

Original comment by litobyte...@gmail.com on 2 Aug 2009 at 10:04

GoogleCodeExporter commented 9 years ago
Hi !

Thanks.

I wrote here, because in the forum [not really to distingish what is what here],
there is no response.

br--mabra

Original comment by mabr...@gmail.com on 3 Aug 2009 at 5:42

GoogleCodeExporter commented 9 years ago

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