Hi, this is what works for me using v2.3.1. If you don't intend to modify the source you should grab directly the timeline_libraries or run the ant script to generate them.
if using the full src (for dev) from repo use relative paths: <script type="text/javascript">var Timeline_ajax_url = "../src/ajax/ api/simile-ajax-api.js?bundle=true"</script> <script src="../src/webapp/api/timeline-api.js?bundle=false" type="text/javascript"></script> if using the minified version from repo or built by you use either full url's or relative paths: <script type="text/javascript"> Timeline_parameters='bundle=true'; var Timeline_ajax_url = "http://127.0.0.1:8080/timeline_2.3.1/ timeline_ajax/simile-ajax-api.js?bundle=true" var Timeline_urlPrefix='http://127.0.0.1:8080/timeline_2.3.1/ timeline_js/'; </script> <script src="http://127.0.0.1:8080/timeline_2.3.1/timeline_js/timeline- api.js" type="text/javascript"></script> If you still can't get it to work drop me a mail and i'll send you a zip with a working version. Pedro On Dec 5, 11:51 am, Skip Cole <[email protected]> wrote: > Hi, > > I tried this but it did not work. > > I do have the libraries located in a different location, but here is exactly > what I tried: > > <script type="text/javascript">var Timeline_ajax_url = > "../third_party_libraries/timeline_2.3.0/timeline_ajax/simile-ajax-api.js?bundle=false";</script> > <script > src="../third_party_libraries/timeline_2.3.0/timeline_js/timeline-api.js?bundle=false" > type="text/javascript"></script> > > I'm sure that I am missing something obvious. > > Any help is welcome. I would like to be able to run this even if > connectivity to the simile.mit.edu site is down. > > Best, > Skip > > On Fri, Nov 13, 2009 at 10:49 AM, Pedro Brites Moita <[email protected]>wrote: > > > <script type="text/javascript">var Timeline_ajax_url = > > "../../../ajax/api/simile-ajax-api.js?bundle=false"</script> > > <script src="../../api/timeline-api.js?bundle=false" > > type="text/javascript"></script> > > > Hi, > > I use it like this, hope it helps. > > You might want to use bundle=true if you will not tinker with the api. > > > Pedro > > > On Fri, Nov 13, 2009 at 2:29 PM, Skip Cole <[email protected]> wrote: > > >> Hi, > > >> I love Similie! We are incorporating it into our open source online > >> simulation generator. > > >> But, I find the installation instructions on how to get Similie Timeline > >> running locally a bit confusing. > > >> First: > >> When it is run from the MIT server, there are only 2 parameters: > >> > >> "http://static.simile.mit.edu/timeline/api-2.3.0/<https://webmail2.usip.org/owa/redir.aspx?C=923e9af0d86b4fac890726c6de...>" > >> and " > >>http://static.simile.mit.edu/timeline/api-2.3.0/timeline-api.js?bundl...<https://webmail2.usip.org/owa/redir.aspx?C=923e9af0d86b4fac890726c6de...> > >> " > > >> When it is run locally, we seem to need 3 parameters. (Suddenly it seems > >> we need to include a reference to simile-ajax-api.js) > > >> Second: > >> The directories in the instructions do not seem to map to the extracted > >> directories. I can guess at them, but I think I must be getting something > >> wrong. > > >> Does anyone have a simple example of it running locally that I can cut and > >> past from? > >> (I'm using Apache/Tomcat.) > > >> Thanks in advance, > >> Skip > > > --~--~---------~--~----~------------~-------~--~----~ > > 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]<simile-widgets%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/simile-widgets?hl=en > > -~----------~----~----~----~------~----~------~--~--- > > -- 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.
