You want your server, Jetty, to be serving your event data, either as a static resource available at a specific url, or as dynamically generated data returned in response to a GET request for a specific URI.
The Timeline.loadXML or Timeline.loadJSON functions will load your event data through an Ajax request to the server, Jetty. Timeline isn't reading it from a file - the browser is requesting the resource (your event data) from the server, which figures out where to get it and return it to the browser. --Mike On Mar 16, 2012, at 10:56 PM, Erik Mohn wrote: > Hi all, > I'm working on a project where I'm trying to incorporate timeline. > > My application is a JSF web application running on a Jetty server. I have > everything up and running when I'm using a static xml file inside my jar file. > My problem is figuring out how to be able to feed timeline with dynamic data > in this context. > > Would it in any way be possible to pass the xml content to timeline directly > as text, without having timeline reading it from a file? > > If anyone have any suggestions, or other ways of approaching the problem it > would be highly appreciated. > > -Erik > > -- > 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. -- 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.
