Hi everyone,  I am trying to use timeline 2.3.1 and am having some
issues getting it to work.   I am receiving a:

"Invalid operand to 'in': Object expected" exception.

Here is my Test.aspx page:

<html xmlns="http://www.w3.org/1999/xhtml";>
<head runat="server">
    <title></title>
    <script type="text/javascript">
        Timeline_ajax_url = "timeline_2.3.0/timeline_ajax/simile-ajax-
api.js";
        Timeline_urlPrefix = 'timeline_2.3.0/timeline_js/';
        Timeline_parameters = 'bundle=true';
    </script>
    <script src="timeline_2.3.0/timeline_js/timeline-api.js"
type="text/javascript">
    </script>
    <script type="text/javascript">
        var tl;
        function onLoad() {
            var bandInfos = [
                Timeline.createBandInfo({
                    width: "100%",
                    intervalUnit: Timeline.DateTime.WEEK,
                    intervalPixels: 100
                })];
            tl = Timeline.create(document.getElementById("project-
timeline"), bandInfos);
            tl.loadXML("TimelineTest.xml", function (xml, url)
{ eventSource.loadXML(xml, url); });
        }

        var resizeTimerID = null;
        function onResize() {
            if (resizeTimerID == null) {
                resizeTimerID = window.setTimeout(function () {
                    resizeTimerID = null;
                    tl.layout();
                }, 500);
            }
        }
    </script>
</head>
<body onload="onLoad();" onresize="onResize();">
    <form id="form1" runat="server">
    <div id="project-timeline" style="height: 400px; border: 1px solid
#aaa;">
    </div>
    </form>
</body>
</html>


Here is a copy of my TimelineTest.xml file:

<data   wiki-url="http://simile.mit.edu/shelf/";   wiki-section="Simile
JFK Timeline">
  <event start="Sat May 20 1961 00:00:00 GMT-0600" title="'Bay of
Pigs' Invasion">  1 </event>
  <event start="Wed May 01 1963 00:00:00 GMT-0600" end="Sat Jun 01
1963 00:00:00 GMT-0600" isDuration="true" title="Oswald moves to New
Orleans"> 2 </event>
</data>


Any thoughts?

-- 
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.

Reply via email to