-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks, gforth.

On Thursday 18 December 2008 14:07:00 g f wrote:
> 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/<http://127.0.0.1:9999/timeline/>)?

index.html is at
  /usr/local/src/timeline_pre2.3.0/src/webapp/index.html

mytimeline.html was originally at
  /home/jkgruet/Research/Reports/mytimeline.html

> If you drop mytimeline.html alongside index.html 

I have now moved it to

  /usr/local/src/timeline_pre2.3.0/src/webapp/mytimeline.html

...so that index.html and mytimeline.html are both in the same directory.


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

Hmm.  It might help to know what these things are supposed to do.  I've 
changed the above to

<html>
<head>
  <span style="background:#FFFFE0">
 <script>
 <!-- Timeline_urlPrefix="http://static.simile.mit.edu/timeline/api-2.0/";; -->
  Timeline_ajax_url="../../ajax/api/simile-ajax-api.js";
  Timeline_urlPrefix='./api/timeline-api.js';
  Timeline_parameters='bundle=true';
</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>
>
>
> HTH!

The original behavior remains:  a box presumably produced by the <div> tag in 
the <body>.

But . . . I think we're making progress.  Perhaps something in the jetty.xml 
file is needed, to configure jetty to act as a server more expansively?
I'm open to more suggestions.

Thanks again.
   James

>
>
>
> <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/<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.
>
>
>
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFJSs58xOXthSHeGJIRAuUSAKC3GZRBcGybowh70rs26DC+tOa0kgCeN+1C
UI7HP0Q2gvmaNXs+h4nRqgA=
=zDxn
-----END PGP SIGNATURE-----


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