Hi,
I think I can help on this, because that´s what I´m doing for a long
time.
I think the best way is to so something like this in your timeline
main file (which off course should be .php instead of .html)
......
include_once(json_functions.php);
.......
.....var bandInfos = [
Timeline.createBandInfo({......
.....
var JsonTimeline = <?php echo getJsonData(); ?>;
eventSource.loadJSON(JsonTimeline,document.location.href);
.....etc
and then in your json_functions.php
......
/*build your json data here */
function getJsonData(){
return 'dateTimeFormat": "iso8601",
"events":[
{ "start": "2009-03-10T06:00:00+00:00",
"end": "2009-03-31T22:00:00+00:00",
"instant": false,
"title": "1",
"color": "#7FFFD4",
"textColor": "#000000",
"caption": "1",
"trackNum": 1,
"classname": "special_event2 aquamarine",
"description": "bar 1"},
{"start": "2009-03-10T08:00:00+00:00",
"end": "2009-03-17T20:00:00+00:00",
"instant": false,
"title": "1.1",
"color": "#7FFFD4",
"textColor": "#000000",
"trackNum": 2,
"description": "bar 1.1"}
]'
}
....
If you change the contents of getJsonData() to pull the data from a
Mysql, you have your problem solved.
Hope it helped.
Jorge
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---