I'm interested in making an HTML page with a timeline, but I cannot use external script files. So, I was thinking that I could include all of the javascript required for the Timeline and for Simile in a single <script> block of an HTML file. I've tried placing the contents of timeline-bundle.js and simile-ajax-bundle.js in 1 script block, but I'm encountering the error that Timeline is undefined. Any thoughts on how to do this? Thanks!
Graham Forte wrote: > > Terry, > here is a test html page and the data source of the jfk example. > Extract both to the same directory. > This is set up to use the api(javascript and stylesheets from simile). > This will get you started. > After you get this running and firefox and firebug installed(as Ryan > suggested, it is time to download the api(I have modified some files, > otherwise I would have sent you this as well) and change the following url > in test.html: > line 6 > <script src="http://simile.mit.edu/timeline/api/timeline-api.js" > type="text/javascript"></script> > to > <script src="yourURLToTheAPI/api/timeline-api.js" > type="text/javascript"></script> > > > > On 3/6/08, Ward, Terrence L. <[EMAIL PROTECTED]> wrote: >> >> Thanks for the information. I did get one of the examples to work. >> Everything >> seems to work except without "Timeline" >> >> The space where timeline should be is blank. >> >> Suggestions? >> >> ________________________________ >> >> From: [EMAIL PROTECTED] on behalf of Ryan Lee >> Sent: Thu 3/6/2008 5:12 PM >> >> To: General List >> Subject: Re: Timeline >> >> >> >> >> Ward, Terrence L. wrote: >> > Hello Ryan, >> > >> > Again I have a question about TimeLine. >> > >> > When you say change all references in the code to my server from yours. >> Can >> > you please give me an example of what I should be looking for. I am new >> to >> > JavaScript and I can figure some of this out but not enough to be self >> > sufficient. >> >> Replace all instances of the string static.simile.mit.edu with whatever >> the name of the server is that you'll have serving Timeline files. >> >> > I am able to get one of the examples to run but the problem is when the >> page >> > opens on the server the Timeline is missing. The only thing that shows >> is >> the >> > html code. >> > >> > Suggestions? >> >> I don't know what you mean by showing HTML code. Do you mean it >> literally shows all the tags when you view it in your browser? In which >> case you'll have to figure out what's going on with your web server. Or >> is it just that the page displays, but without Timeline? >> >> A live example would be helpful. >> >> Try using Firefox and installing Firebug (http://getfirebug.com >> <http://getfirebug.com/> ) for >> assistance in diagnosing issues. >> >> -- >> Ryan Lee [EMAIL PROTECTED] >> MIT CSAIL Research Staff http://simile.mit.edu/ >> http://people.csail.mit.edu/ryanlee/ >> _______________________________________________ >> General mailing list >> [email protected] >> http://simile.mit.edu/mailman/listinfo/general >> >> >> >> _______________________________________________ >> General mailing list >> [email protected] >> http://simile.mit.edu/mailman/listinfo/general >> >> >> > > > _______________________________________________ > General mailing list > [email protected] > http://simile.mit.edu/mailman/listinfo/general > > -- View this message in context: http://www.nabble.com/Timeline-tp15856062p15950849.html Sent from the SIMILE - General mailing list archive at Nabble.com. _______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
