Hi, 

Question from a beginner if you'd be up for it:

I have everything up and running aside from autoWidth. (I'm dynamically 
loading events)

What I've found mentions that I should call the finishedEventLoading() 
function and that will resolve the autoWidth not working.

How does one call the finishedEventLoading function if they've initialized 
the timeline using the following?
var bandInf = [] ;
// ... push bandInf elements
$("#tline").syrinxTimeline({ bands: bandInf });


I had thought something like $("#tline").finishedEventLoading();  or 
 $("#tline").SyrinxTimeline().finishedEventLoading();

I assume this is just my lack of understanding jQuery, but any advice would 
be greatly appreciated.

-Mike


On Friday, October 25, 2013 8:20:10 AM UTC-4, Matt Denman wrote:
>
> My version of timeline on github is a branch of the main version from MIT. 
>  I added the jquery plugin style of dev and streamlined the codebase.
>
>
> On Fri, Oct 25, 2013 at 3:22 AM, mario chiari <[email protected] 
> <javascript:>> wrote:
>
>> Hi
>>
>> I am a little confused now.
>> Which is/where is the official timeline code?
>> I would like to have timeline as a JQuery plugin: is it so already, or
>> planned for the near future, or just a possible fork?
>> Thanks Cheers
>> mario
>>
>>
>> On Mon, 2013-10-21 at 13:29 -0700, Ted Benson wrote:
>> > HI Matt,
>> >
>> >
>> > Rekindling this thread.. We were chatting today about bringing some of
>> > your improvements back to the Simile version of Timeline. Namely, some
>> > of the performance improvements and the removal of the dependence on
>> > SimileAjax, which is a vestige of the days when jQuery didn't exist
>> > yet.
>> >
>> >
>> > Do you have an idea of how easy some of these changes might be to port
>> > back into our codebase? (Ideally without requiring a complete
>> > rewrite).
>> >
>> >
>> > Thanks a lot for all your work on this!
>> >
>> >
>> > Ted Benson
>> >
>> >
>> >
>> > On Sunday, July 7, 2013 8:47:33 PM UTC-4, Matt Denman wrote:
>> >         I started using timeline a while ago and dug in deep.  I love
>> >         the widget, but I really disliked the way it was loading the
>> >         javascript and how its script block needed to be in the head
>> >         section.  I tore out the timeline code from the overall Simile
>> >         project and removed much of the base code that wasn't needed
>> >         or was just a duplicate of what jquery has.  I've changed the
>> >         way class methods are defined to be more streamlined and the
>> >         overall result is now one file that is 153kb minified and 44k
>> >         zipped.  This is a significant size difference from the Simile
>> >         version, which loads faster on the iPad.  This code version
>> >         also has tablet touch support as provided in other threads on
>> >         the web.
>> >
>> >
>> >         I've completely removed all support for doing ajax directly
>> >         from Timeline as its just more mainstream to use something
>> >         like $.load(...).done(function(json){...}).  This is an
>> >         example of removing stuff from timeline that jquery already
>> >         does.
>> >
>> >
>> >         Another thing removed is the history stuff which forced
>> >         another query on the server and wasn't really used in timeline
>> >         anyway.
>> >
>> >
>> >         Also, the code no longer tries to load its own version of
>> >         jquery.  My thinking is, if you cant properly setup jquery on
>> >         the page, you probably aren't ready to use timeline.  I think
>> >         the main developer should be crystal clear on what version of
>> >         jquery is being used in their project.  That code was just
>> >         bloat.
>> >
>> >
>> >         I've also setup the creation of the timeline as a real jquery
>> >         plugin.  All examples I've converted over work, and my own app
>> >         which pushes the edges of the timeline works with the new
>> >         code.
>> >
>> >
>> >         I'm not sure if this new code should be setup as a branch to
>> >         the main project or just shared somewhere else.  I want to
>> >         take timeline further than it is now, including support
>> >         classes in .NET for ASP.NET classic and MVC.  Right now I'm
>> >         thinking I'll just host this version on another site and let
>> >         it go from there.
>> >
>> >
>> >         I'm adding better event notification to support having other
>> >         things on the page show data related to the events showing on
>> >         the page.  For example, all financial transactions visible on
>> >         the timeline are summarized in a table below the timeline.
>> >
>> >
>> >         I've also added support for event grouping by having bands
>> >         that dont have to have a timeline painter.  Put different
>> >         events on each band and only have the bottom band have the
>> >         date tic marks.  This groups events well.
>> >
>> >
>> >         I also need to add support for paging events rather than
>> >         loading all events into the timeline at once.  As the user
>> >         scrolls through time, the timeline should be able to have
>> >         events added and removed dynamically to keep the total # of
>> >         events (and DOM elements) actually rendered down to a
>> >         minimal.  I worked on the Nitobi Grid which did virtual
>> >         scrolling with data paging via ajax and it worked well.  I see
>> >         it as critical for timeline to support this really well.
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "SIMILE Widgets" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to [email protected] <javascript:>.
>> > To post to this group, send email to [email protected] 
>> <javascript:>.
>> > Visit this group at http://groups.google.com/group/simile-widgets.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "SIMILE Widgets" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/simile-widgets/7rEoytCK88c/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/simile-widgets.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/simile-widgets.
For more options, visit https://groups.google.com/d/optout.

Reply via email to