On Sun, 2007-01-28 at 18:06 -0500, David Huynh wrote:
> (Chisimba sounds interesting. Feel free to share with us some URLs
> where 
> we can check it out.)

Hi David et al,

I have now incorporated a simple version of timeline into Chisimba. You
can see it in action at 
http://5ive.uwc.ac.za/index.php?module=timeline

You can pass basic timeline parameters in the querystring. 
  timeLine - Fully qualified URI for the timeline XML file
  focusDate - THe date to centre the timeline on
  intervalPixels - The number of pixels for the width of the interval
  intervalUnit - The timelines unit for the interval (e.g. DAY, MONTH,
YEAR)
  tlHeight - the height in pixels of the timeline

For example, try:

http://5ive.uwc.ac.za/index.php?module=timeline&focusDate=1919
http://5ive.uwc.ac.za/index.php?module=timeline&focusDate=1964

or 

http://5ive.uwc.ac.za/index.php?module=timeline&timeLine=http://yoursite/path/to/yourtimeline.xml
 where yourtimeline.xml is of the format, for example:

<data>
    <event 
        start="Jul 18, 1918"
        title="Mandela born"
        image="http://simile.mit.edu/images/csail-logo.gif";>
        Rolihlahla Mandela born in the small village of Qunu in the
district of Mthatha, the Transkei capital on born July 18, 1918.His
given name Rolihlahla means one who brings trouble upon himself.
    </event>
</data>

Warning: This is a work in progress and I have not yet added proper code
comments or try/catch blocks.

Now that I know how to do it, I will be adding some of the other
features of timeline to the Chisimba timeline module. But first I am
going to try to create a mashup with my google maps simplemap Chisimba
module.

I am not a javascript person, more PHP, so I hope you don't mind me
asking a dumb question. Is there a way to move the focusDate on click?
In the mashup, I want to make it possible to click a pin on the map, and
then have the timeline move to the date of the clicked event. Hopefully
I can figure out vice versa as well.

Regards
Derek


> 
-- 
Prof. Derek W. Keats, PhD
Executive Director, Information and Communication Services
The University of the Western Cape, P. Bag X17, Bellville 7535, South
Africa
Web:    http://ics.uwc.ac.za/ and http://avoir.uwc.ac.za
Ph:     +27 21 959 2304; Fax: +27 21 959 1201; Cell: +27 82 787 0169
Email:  [EMAIL PROTECTED]   Skype: dkeats

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to