Hi all, firstly let me congratulate with Smile for the Timeline widget, think it's great!
I have a site on where I'm implementing the timeline but I need to use a json service as data source. How do I do it? I'm not great at javascript so I couldn't find a way to store the entire Json output (which is correcly formatted accordingly) in a global variable. That's what I've tried but I'm stuck on how to store in the variable the entire output and not just one entry: var timeline_data; //at global scope $.ajax({ type: 'GET', url: '/timeline/json_output.json', dataType: 'json', timeout: 10000, crossDomain: true, success: function(result) { timeline_data = result; } }); Now I don't know how to use the variable timeline_data. Think it's an array object. The following code doesn't work (of course): eventSource1.loadJSON(timeline_data, url); So I don't know how to proceed further. Any help much appreciated. Thanks in advance -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To view this discussion on the web visit https://groups.google.com/d/msg/simile-widgets/-/kHb9pILMMUAJ. To post to this group, send email to simile-widgets@googlegroups.com. To unsubscribe from this group, send email to simile-widgets+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.