Thanks -- a combination of your first suggestion plus some from other developers familiar with Expression Engine helped to solve the problem. Thanks again!
On Mar 27, 10:05 pm, Stefano Mazzocchi <[email protected]> wrote: > Krista wrote: > > Hi All -- > > > I am trying to embed atimeplotinto a page using Expression Engine, > > but keeping getting the following errors: > > > 1. > >Timeplot.DefaultEventSource is not a constructor > > var eventSource = newTimeplot.DefaultEventSource(); > > AND > > > 2. > >timeplotis undefined > > timeplot.repaint(); > > > I believe there are two problems at work and wanted to know if there > > were any workarounds: > > > 1. The site to which I'm posting already has its own body tag -- so > > the line: > > <body onload="onLoad();" onresize="onResize();"> > > ... > > </body> > > > is causing some errors. > > > 2. Also, as a result of that, the page appears to load before the > >timeplot-api.js and my .js doc can load. > > > Please let me know if there are any workarounds -- or suggestions for > > uploading SIMILE timeplots to already heavily formatted pages on a > > news site. > > Bear in mind that I heard of "expression engine" for the first time with > your email, so these are just wild guesses. > > Without the resulting HTML page generated by expression engine is hard > for me to identify where the problem is, but you can try to use this > instead of <body onload="..."> > > <script> > $(function() { > $(window).bind('load', onLoad).bind('resize', onResize); > }); > </script> > > HTH > > -- > Stefano Mazzocchi Application Catalyst > Metaweb Technologies, Inc. [email protected] > ------------------------------------------------------------------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
