IntroductionThe usual practice is to store your Timeline's data in an external xml or json file. But you can include the data within the body of your Timeline file if you wish. Details1. Create a Javascript variable "json" with your JSON Timeline data. Any variable name can be used. 2. After creating your Timeline, load the data: eventSource.loadJSON(json, document.location.href); 3. This technique is demonstrated in Timeline example 3
|
fvsdfvsd
Where is this example 3 you speak of?
its in the SVN source
Just to give those people an impression, who don't want to check out the project from SVN.
<script> ...here some more code....
function onLoad() {
...here some more code....eventSource.loadJSON(event_data, document.location.href);
...here some more code.... </script>