Hi Larry,

based on your good hints i found a working solution for my idea:

http://.../desktopdefault.aspx/tabid-2?cd=1530-06-25 // delivers my
desired date which should be used for centering the Timeline.
The links comes directly out of my CMS (contentXXL).

On my timeline-page i parse the url with javascript:

<SCRIPT language="javascript">


var timelineConfig = {

timelineConstructor: function (div, eventSource) {
.
..
...
var date;
if (window.location.search != ""){
var datumstring =
window.location.search;                                 // delivers ?
cd=1530-06-25
var cDate="" +datumstring.substr
(4);                                         //1530-06-25
date="" +Timeline.DateTime.parseIso8601DateTime(cDate);   //parsing
"1530-06-25" with the GregorianDateTime will result in an error
}else date="" +Timeline.DateTime.parseIso8601DateTime("2009");
...
..
.
 // 2009 -- example for the default-date (if your defaultdate is
outside of your json-dates the timeline will automatically centers on
the nearest event! kewl! (o;

{date="" +Timeline.Date...}
looks a bit strange but this is only needed in my CMS because the
whole timeline is wrapped in a so called html-object and the internal
editor needs this ugly workaround with "" + instead of this normally
date=Timeline.DateTime.parse... should work also.

i know this is pretty simple and not the last version but for my
desired centeringlink it works fine.


Thx again for your great support!




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