Thanks,
I realize that but I need to set or change the intervalUnits after I have
loaded the xml.
Unfortunately bandInfos are created prior to the Timeline.loadXML is called
and I cant figure out how to reload them after I have loaded the xml.
Thanks!
For example:
var bandInfos = .....
tl = Timeline.create(....,bandInfos);
*//Here I dont know my eventCount, firstEventDate or lastEventDate so I cant
calculate the ideal intervalUnit.
*Timeline.loadXML("jfk.xml", function(xml,url) {
/*/Here I know my eventCount, firstEventDate, and lastEventDate as I have
loaded my xml, so I can calculate ideal interval unit so I need to reload
bandInfos(intervalUnits) here.*
eventSource.loadXML(xml,url);
*//or here*
});

On Mon, Oct 20, 2008 at 6:21 AM, culver <[EMAIL PROTECTED]> wrote:

>
>  g f wrote:
> Is there a way to repaint/reload the intervalUnits based on what the
> three
> above attribute values are?
>
> If it helps, one can set intervalUnit value, when initializing the
> bandInfos variable.
>
>   var bandInfos =   [ Timeline.createBandInfo({
>          timeZone:       -5,
>          eventSource:    eventSource,
>          date:           "Jun 28 2006 00:00:00 GMT",
>          width:          "30%",
>          intervalUnit:   Timeline.DateTime.YEAR,    // or decade,
> month, week, hour, or insert your own variable
>          intervalPixels: 200     })   ];
>
>
> Then bandInfos is passed into the command
>   tl = Timeline.create(.... , bandInfos, ....).  So the interval
> units are assigned when the timeline is created.
>
> Hope this answers your question?
>
>
> On Oct 19, 6:25 pm, g f <[EMAIL PROTECTED]> wrote:
> > I really only need to reload the interval units within the
> > Timeline.loadXML() function.
> > I can create a function that will choose the best interval units based
> > on first,last,count attributes.
> > If I cant reload the interval units, is there a way to get the xml
> > using (TImeline.loadXML()) before setting the bandInfos?
> > Thanks in advance!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to