Hi Emma, Several issues:
1) The documentation on the wiki is not so good, I apologize for that. Since you are not adding the call to timeline-api in the head section of you file, you need to explicitly say where the Timeline sw lives. Fix: <script> Timeline_urlPrefix = "http://static.simile.mit.edu/timeline/api-2.0/"; </script> <script src="http://static.simile.mit.edu/timeline/api-2.0/timeline- api.js?bundle=false" type="text/javascript"></script> (also, the above uses the 2.0 version which is better.) 2) You are calling bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout()); Not sure what's happening there, but I needed to comment it out to get your timeline working 3) I am not sure if the "Same origin policy" will allow your html file to retrieve an xml data file that is one a different server. It may not. If you get a timeline with no data in it, that's probably the reason. See https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript For my test of your file, I copied your xml file to my server. Here is the result: http://sandbox.kluger.com/examples/excavation_timeline.html 4) Your html file has a number of <body> elements, I do not think that is ok. 5) Since you probably can't change the body element of the Drupal template: To get your timeline going, just add onLoad(); after your Timeline js. Hope this helps, let us know how you get on. Regards, Larry On Nov 7, 6:56 am, "Emma Jane O'Riordan" <[EMAIL PROTECTED]> wrote: > Cheers. > > The webpage is athttp://www.silchester.rdg.ac.uk/excavation_timeline > > I;m calling all the timeline bits from the MIT served versions, not > sure what release it is? > > Emma > > On Nov 5, 5:30 pm, LarryK <[EMAIL PROTECTED]> wrote: > > > Hi Emma, > > > If you give us a url to try, that would help solve the problem. > > > The problem is not Drupal, the problem is setting up the right url > > paths and javascript variables. > > > In general: > > 1) What release of Timeline are you using? > > 2) Are you serving it locally from your server or using the MIT-served > > versions? > > > Regards, > > > Larry > > > On Nov 5, 8:16 am, "Emma Jane O'Riordan" > > > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I'm trying to implement a timeline in a website that we use Drupal > > > for. Previous versions of the timeline using a php page work just fine > > > in all browsers, but when i copied the code into drupal i receive the > > > error "Failed to derive URL prefix for Timeline API code files". > > > > I have read related posts on other forums but noone actually seems to > > > say what to do, on;y that the problem lies in the script code being in > > > the header. > > > > Does anyone know of any examples of drupal successfully using timeline > > > or is there something obvious i am missing? > > > > any help appreciated! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
