Hello there,

Firstly, thank you very much for this wonderful widget - it's really cool!

I have been integrating the timeline with a web application and have it loading the event source dynamically via the OnScrollListener event handler. I found the need to get at the object returned from loadJSON in it's entirety to access variables and could not find a way ( the _events object was no good because it only contained the events data ).

I am not sure if there is another way to do this, without hacking, but for a quick fix I needed to hack line 2324 of the timeline_bundle.js and add the response object (H) to the event source addMany trigger like this:

}}if(J){this._fire("onAddMany",[H]);

note the "H" var, this is the full json object from the server response. I can then access that data in the onAddMany listener like so:

eventSource.addListener({
      onAddMany: function(response) {
          console.log(response);

Seems like such a small change to make life easier - again I state that I am not sure if there is a better way to do the above and if so all good, but please let me know!

Many thanks,

Adam Stephen Docherty


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