JKG,
where is your "mytimeline.html" located relative to index.html (this is the
html file that you see when you navigate to http://127.0.0.1:9999/timeline/
)?
If you drop mytimeline.html alongside index.html and change your code in
mytimeline.html to the following and then try running it in firefox with the
firebug plugin installed perhaps that will work.
<html>
<head>
<script>
//The path below should reflect a path relative to mytimeline.html
(example would reflect a directory called timeline that is alongside
mytimeline.html.)
Timeline_ajax_url="./timeline/timeline_ajax/simile-ajax-api.js";
Timeline_urlPrefix='./timeline/timeline_js/';
Timeline_parameters='bundle=true';
</script>
>
>
> <script>
> var tl;
> function onLoad() {
> var bandInfos = [
> . . . <SNIP> . . .
> ];
> bandInfos[1].syncWith = 0;
> bandInfos[1].highlight = true;
> tl = Timeline.create(document.getElementById("my-timeline"),
> bandInfos);
> }
> var resizeTimerID = null;
> function onResize() {
> . . . <SNIP> . . .
> }
> </script>
> </head>
> <body onlead="onLoad();" onresize="onResize();">
> <div id="my-timeline" style="height: 150px; border: 1px solid
> #aaa"></
> div>
> </body>
> </html>
HTH!
>
> <blockquote>
>
> <html>
> <head>
> <span style="background:#FFFFE0">
> <script>
> Timeline_urlPrefix="
> http://static.simile.mit.edu/timeline/
> api-2.0/ <http://static.simile.mit.edu/timeline/api-2.0/>";
> </script>
> <script src="
> http://static.simile.mit.edu/timeline/api-2.0/timeline-
> api.js <http://static.simile.mit.edu/timeline/api-2.0/timeline-api.js>"
> type="text/javascript"></script>
> </span>
> <script>
> var tl;
> function onLoad() {
> var bandInfos = [
> . . . <SNIP> . . .
> ];
> bandInfos[1].syncWith = 0;
> bandInfos[1].highlight = true;
> tl = Timeline.create(document.getElementById("my-timeline"),
> bandInfos);
> }
> var resizeTimerID = null;
> function onResize() {
> . . . <SNIP> . . .
> }
> </script>
> </head>
> <body onlead="onLoad();" onresize="onResize();">
> <div id="my-timeline" style="height: 150px; border: 1px solid
> #aaa"></
> div>
> </body>
> </html>
>
> </blockquote>
>
> 2. When I access the file from my browser:
>
> $ konqueror mytimeline.html
>
> All I get is the box which is produce (I believe) by the <div > tag.
> (Same thing when using
> firefox and opera browsers.)
>
> 3. My guess is that there is needed some sort of "javascript server"
> which must be called correctly. When I download and unzip the source
> file to /usr/local/src/timeline_pre2.3.0/ , change to that directory,
> and execute the ./run script (which runs java -jar lib/start.jar
> jetty.xml) and then point my browser (any of them) to "http://
> 127.0.0.1:9999/timeline/", the example index shows up nicely---even
> when the ./run script is in background.
>
> 4. So . . . what steps need to be taken so that I can get my
> local .html file with javascript to work when my browser looks at
> it? Apparently jetty has to be told where to look for the file; if
> so, how's that done?
>
> 5. Once my html file and timeline are debugged, the file'll be placed
> on a remote webserver--by someone else: an expert, I hope. But
> that's in the future . . . . First things first.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---