*Thank you SO much David!!*
That worked perfectly.

On Mon, Oct 20, 2008 at 9:35 PM, David Huynh <[EMAIL PROTECTED]> wrote:

>
> I'd suggest
>
> function onLoad() {
>    Timeline.loadXML("... xml url ...", onGotXML);
> }
>
> function onGotXML(xml, url) {
>    var eventSource = new Timeline.DefaultEventSource();
>    eventSource.loadXML(xml, url);
>
>    ... now create bandInfos and tl ...
> }
>
> David
>
> g f wrote:
> > Hello all,
> > I had initially tried to figure out a way to reload the bandInfos,
> > specifically the intervalUnits but am still unsuccessful.
> > Perhaps there is a way to load the XML prior to creating the bandInfos?
> >
> > I tried the following:
> >
> > function onLoad() {
> >     var *myxml* = myAjaxCall's responseXML; //also tried responseText
> >     eventSource = new Timeline.DefaultEventSource();
> >       var theme = Timeline.ClassicTheme.create();
> >       var bandInfos = ....
> >       //create bandInfos here.
> >      .....
> >      .....
> > tl = Timeline.create(document.getElementById("timeline-div"), bandInfos);
> > eventSource.loadXML(*myxml*, document.location.href);
> > }
> >
> > I keep getting FF error:
> > F.documentElement is undefined
> > [Break on this error] var G=F.documentElement.getAttribute("wiki-url");
> >
> > Is there a way to load the xml as the first thing in the onload()
> > function?
> >
> > Thanks for any help!
> >
> >
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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