General things I'd suggest: Limit what you are doing to small tests and remove any other elements from your test pages. Use example data and HTML code where possible. As Larry suggests, first get one working on it's own, then the other on it's own. Then try both, but very simple data and code.
I'm not sure if embedding each in iframes might help you? As theoretically they'd be considered different documents? (not sure about this) On Thu, Feb 19, 2009 at 6:59 AM, Larry Kluger <[email protected]> wrote: > Hi Julian, > > I suggest that you get first one, then the other library to load locally. > > For loading Timeline locally, use the version 2.2 zip files. They do work. > The ones in the trunk need to be updated since the Ajax library has made > some directory changes that need to be reflected in the trunk zip files. > > I did a screencast that may help you track down the problem with a local > install of Timeline. > See > http://sandbox.kluger.com/timeline_firebug/ > > Regarding having both Timeline and Timeplot to load on the same page. > It may be tricky to accomplish depending on how the two libraries start > themselves up. > Possible issues include: > * Loading two copies of the Simile Ajax utilities (of perhaps different > versions) > * Loading two copies of jquery, again with issues of different versions > * Stepping on each other due to conflicts of global variables > * Other issues. > > Bottom line: may well take some work to get the two libraries to play > nicely. > The fact that you got it working with older versions of the libraries on FF > is a good sign. > IE tends to be less forgiving of some issues than FF or Safari. So while FF > may muddle through in some cases, IE just pouts and won't show the page. > > Note that you may need to make changes to Timeplot to have it load locally. > > > Please keep us informed with your progress. > > Regards, > > Larry > > ------------------------------ > *From:* Julian <[email protected]> > *To:* SIMILE Widgets <[email protected]> > *Sent:* Wednesday, February 18, 2009 11:58:30 AM > *Subject:* Help with transitioning from Timeline and Timeplot versions on > simile.mit.edu to current/locally hosted versions? > > > I've been working on a site with a Timeplot at the top and a Timeline > at the bottom, which both load their events from the same source. It > worked great in Firefox, but IE gave me an error and events didn't > load in either Timeline or Timeplot. (in case it's meaningful, the > error was: Caught exception: undefined Details: 'documentElement' is > null or not an object) > > I've decided to change from pointing at the simile.mit.edu site to > hosting a copy of the libraries locally, in the hopes that getting a > newer version would alleviate my IE problems and would help encourage > my keeping up with and contributing to the development of these > tools. I downloaded the zipfile with current Timeline in it and > unzipped it into my project's directory. I had already copied all of > the Timeplot files from the MIT site for a version of my site intended > to work in island mode, and I didn't see a zipfile for the current > version of Timeplot, so I thought the old version should suffice for a > first test. (The island mode was a hit, but still suffered the IE > problem) > > Unfortunately I can't get my site to work with the local versions. I > followed the instructions in Timeline's README file and the > documentation at the top of timeline-api.js but neither the Timeline > or the Timeplot now load, in either FF or in IE. In FF, Firebug tells > me: "Timeplot is not defined > http://www.rsma.frb.gov/eim/timeline/source/timeplot/timeplot-bundle.js > Line 9" (and IE's console is giving me the same error message - and > that's the line where Timeplot.create is defined, if I'm not mistaken) > and at first I thought at first that I had missed some Timeplot files, > but my locally-hosted version of Timeplot had worked with the locally- > hosted previous version of Timeline in my island-mode tests... > > Is there something I need to download outside of the Timeline zipfile > to get the current version of Timeline working? Or perhaps have I set > Timeline's variables wrong? Here's what I've got: > > <script> > Timeline_ajax_url="http://internal_site/my_project/source/timeline/ > src/ajax/api/simile-ajax-api.js"; > Timeline_urlPrefix='http://internal_site/my_project/source/timeline/ > src/webapp/api/'; > Timeline_parameters='bundle=true'; > </script> > <script src="http://internal_site/my_project/source/timeline/src/ > webapp/api/timeline-api.js" > type="text/javascript"> > </script> > <script src="http://internal_site/my_project/source/timeplot/timeplot- > bundle.js" > type="text/javascript"></script> > > Any help would be appreciated. > > Thanks very much, > > Julian > > > > > > -- Scott Thomson 0401 726 889 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
