Krista wrote:
> Hi All --
>
> I am trying to embed a timeplot into a page using Expression Engine,
> but keeping getting the following errors:
>
> 1.
> Timeplot.DefaultEventSource is not a constructor
> var eventSource = new Timeplot.DefaultEventSource();
> AND
>
> 2.
> timeplot is 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
-~----------~----~----~----~------~----~------~--~---