Can you try debugging with Firebug or Chrome dev tool?
Make sure the JSON object passed to .loadJSON() is in the format
expected.

http://simile-widgets.googlecode.com/svn/timeline/tags/latest/src/webapp/examples/test_example/test.js


On Oct 5, 8:12 am, herb <[email protected]> wrote:
> Thanks Jon.  This is what I did.  It looks like a step in the right
> direction, but maybe not far enough.
>
>         tl = Timeline.create(document.getElementById("clusTimeline"),
> bandInfos, Timeline.HORIZONTAL);
>
>         eventSource.loadJSON(eventData["timeline"],
> document.location.href);
>
>         tl.loadJSON(eventData["timeline"], function(json, url) {
>
>             eventSource.loadJSON(json, url); })
>
> It showed the loading message, but then I got this error message
> popping up:
> Failed to load json data from [object Object]
> Not Found
> Near as I can tell, the tl.loadJSON tries to load the raw json
> information from the server.  When I replaced eventData["timeline"]
> with the URL of my server call, it stopped complaining, but it still
> did not show the events.
>
> On Oct 4, 10:20 am, Jon Crump <[email protected]> wrote:
>
>
>
>
>
>
>
> > Herb,
>
> > Just an under-educated guess here, but in the code you posted, I don't
> > see anyplace where the Timeline instance you've created with tl =
> > Timeline.create() is loaded with the contents of your eventSource. I
> > would have expected to see something like:
>
> > tl.loadJSON("someReferenceToTheData.js", function(json, url) {
> > eventSource.loadJSON(json, url); })
>
> > Jon

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