Hi Elizabeth, I think the error is related to the following error which appears in the Firefox Error Console (but is non fatal in Firefox)
Error: setupFilterHighlightControls is not defined Source File: http://calligraphyqalam.com/styles/scripts/timeline.js Line: 74 setupFilterHighlightControls(document.getElementById("controls"), tl, [0,1], theme); This error occurs in onLoad() so is the probable cause of your error. If you don't want the filters and search capabilities you can remove this line. If you do want filters and highlight searching boxes then you will need to include the following line in your index.html <script src=" http://www.simile-widgets.org/timeline/examples/examples.js" type="text/javascript"></script> I don't know the URL to the new examples.js but perhaps Larry can help out? Otherwise you might be able to copy the file locally, not sure. One more thing, in the onResize() method, change the line: tl.layout(); to if (tl != null) tl.layout(); That will stop tl not defined errors on the off chance that resize get called when tl is not defined (generally only happens when recreating tl from live data) Cheers, Scott On Tue, Mar 17, 2009 at 8:38 AM, Elisabeth <[email protected]> wrote: > > Hi David, > Thanks so much for writing me back. I just removed the commas and > tried it again, and IE still says I have an error on line 60 (which is > the code referenced above - the onLoad and onResize functions. > I appreciate your help! > Elisabeth > > On Mar 16, 6:01 pm, David Huynh <[email protected]> wrote: > > Elisabeth wrote: > > > Sorry for all my messages - but I'm running into a big problem. My > > > timeline won't run in Internet Explorer (I tested in 7); the page has > > > an error, and it's linked to the following code: > > > <body onload="onLoad();" onresize="onResize();"> > > > I'm not sure why this would be a problem with IE... > > > > > My timeline is here:http://calligraphyqalam.com/styles/index.html. > > > > Elisabeth, > > > > Try to remove the trailing commas following "theme" > > > > var bandInfos = [ > > Timeline.createBandInfo({ > > eventSource: eventSource, > > date: d, > > width: "82%", > > intervalUnit: Timeline.DateTime.DECADE, > > intervalPixels: 30, > > theme: theme, // remove this comma > > }), > > Timeline.createBandInfo({ > > overview: true, > > showEventText: false, > > trackHeight: 0.8, > > trackGap: 0.5, > > eventSource: eventSource, > > date: d, > > width: "18%", > > intervalUnit: Timeline.DateTime.CENTURY, > > intervalPixels: 40, > > theme: theme, // remove this comma > > }) > > ]; > > > > David > > > -- 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 -~----------~----~----~----~------~----~------~--~---
