I'm just using Timeline, not Exhibit. I'm serving up the Timeline javascript files from my own server.
The changes are in my local javascript code only - I did not modify the Timeline code. Note that my method relies on prototype (http://www.prototypejs.org/). - Michael On Sep 29, 2008, at 8:24 PM, netarc wrote: > > Thanks for the response & tips - a couple of questions, are you > running Exhibit localized, or via a call to the main Exhibit > javascripts? And re: the functions you mention - are these in your > HTML file, or did you actually have to modify the underlying Exhibit > code (if the latter, I suppose that'd answer the first question, you'd > have to run it locally in order to modify the code?) > > > On Sep 26, 1:56 pm, MPS <[EMAIL PROTECTED]> wrote: >> Hi Ali - >> >> I'm *sort of* doing what you describe, in the following way: >> >> My events are grouped into categories and stored in a Java HashMap on >> the server side. >> In my timeline.jsp page, I create a javascript array called >> "timelineCategories", containing each of the categories (HashMap >> keys) >> as strings. >> >> Then in my initTimeline() function, I create one band for every >> category in that array. >> Each band has an eventSource, stored in the eventSources array. >> Here's how I load events into my timeline. I'm using the prototype >> "each()" function to simplify the code: >> >> // load events: >> eventSources.each(function(eventSource, index) { >> tl.loadXML("/timeline_feed?cat="+timelineCategories[index], >> function(xml, url) { eventSource.loadXML(xml, url); }); >> }); >> >> My "timeline_feed" call simply grabs events from the HashMap and >> generates the appropriate XML for the given category. >> >> It took a while to get this right, but it's all working smoothly now. >> >> Hope this helps! >> - Michael >> >> On Sep 25, 3:22 am, "Ali Shamsi" <[EMAIL PROTECTED]> wrote: >> >>> I've been able to set up a great technical roadmap using Exhibit & >>> google >>> spreadsheets (wow, I'm still just amazed at the versatility of >>> Simile/Exhibit/Timeline!) ... but still haven't been able to >>> figure out a >>> couple of things. >> >>> I have events color-coded by *eventType*, so that each category/ >>> type of >>> event shows up with a unique color (see my sample data feed >>> athttp://spreadsheets.google.com/pub?key=pRG9Qua70yXYHhBYnQnmaAA);currently >>> Exhibit is determining the colors, but how would one go about >>> predefining >>> the colors for each event type? >> >>> Also, is it possible to group events on a timeline view, so that >>> events of a >>> given category/type all show up in one row on the timeline? >>> Currently, the >>> different event types are interspersed all up & down the timeline >>> view ... >>> I'm trying to figure out how to group them across the timeline so >>> that event >>> types show grouped together, vertically. >> >>> Thanks! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
