Introduction
The 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.
Details
1. 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>I'm either looking in the wrong place or this example doesn't exist. Could someone point me to this actual example explicitly please
The example can be found here: http://code.google.com/p/simile-widgets/source/browse/timeline/trunk/src/webapp/examples/test_example3/test_example3.html
From this Wiki page you can find it by: - Click "Source" tab at top of page - Click "Browse" near top - Navigate code tree: timeline/trunk/src/webapp/examples/test_example3
Hi,
the code in example 3 got me confused.
This is not loading an external json file, it's using the json defined there, right? Where do I find an example where an external json file is loaded?