Dear David
I found the solution simply sending JSON. When I put it on-line will
send you an example.
Thanks a lot
Emiliano.
2007/5/16, David Huynh <[EMAIL PROTECTED]>:
> Emiliano,
>
> Instead of
>
> var d = Timeline.DateTime.parseGregorianDateTime("1972-02-18");
>
> could you try this?
>
> var d = Timeline.DateTime.parseIso8601DateTime("1972-02-18");
>
> If that doesn't work, tell us where we can see your timeline ourselves.
> It's much easier to debug it that way.
>
> Cheers,
>
> David
>
> Emiliano Marmonti wrote:
> > Hello all
> >
> > I have a question with TimeLine...I have a database with date data
> > stored in iso8601, for instance '1999-12-01', as iso8601 says it
> > represents YYYY-MM-DD. The problem is that the events are not showing
> > at all.
> >
> > My JS code is:
> >
> > var d = Timeline.DateTime.parseGregorianDateTime("1972-02-18");
> >
> > var bandInfos = [
> >
> > Timeline.createBandInfo({
> > width: "60%",
> > intervalUnit: Timeline.DateTime.MONTH,
> > intervalPixels: 200,
> > eventSource: eventSource,
> > date: d,
> > theme: theme
> > }),
> >
> > Timeline.createBandInfo({
> > width: "40%",
> > intervalUnit: Timeline.DateTime.YEAR,
> > intervalPixels: 200,
> > eventSource: eventSource,
> > date: d,
> > showEventText: false,
> > trackHeight: 0.5,
> > trackGap: 0.2,
> > theme: theme
> > })
> >
> > ];
> > bandInfos[1].syncWith = 0;
> > bandInfos[1].highlight = true;
> >
> > bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout());
> >
> > tl = Timeline.create(document.getElementById("tl"),
> > bandInfos, Timeline.HORIZONTAL);
> > tl.loadXML("/timeline/emi.xml",
> > function(xml, url) { eventSource.loadXML(xml, url); });
> > }
> >
> >
> > The xml data is
> >
> > <data dateTimeFormat="iso8601" wiki-url="http://simile.mit.edu/shelf/"
> > wiki-section="Simile JFK Timeline">
> > <event start="1972-02-18" title="'Bay of Pigs' Invasion">
> > </event>
> > <event start="1972-02-03" end="1972-02-25" isDuration="true"
> > title="Oswald moves to New Orleans">
> > Oswald moves to New Orleans, and finds employment at the William
> > B. Riley Coffee Company. <i>ref. Treachery in Dallas, p
> > 320</i>
> > </event>
> > </data>
> >
> > But...no way...If I change every event and TimeLine start date for a
> > single year (ex:1972) everything works ok... I've tried with
> >
> > Timeline.setIso8601Date = "YYYY-MM-DD";
> >
> > but works worst, the years are not presented...
> >
> > Any help will be appreciated. Thanks in advance.
> > Emiliano.
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://simile.mit.edu/mailman/listinfo/general
> >
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general