cfTimeline Updated

Posted By : todd sharp Posted At : June 5, 2007 1:33 PM Posted In: cfTimeline, ColdFusion

4

I finally got around to uploading a new version (1.1) of cfTimeline to RIAForge. There are a few nice changes I added in this release. Here's the highlights:

  • Added a creationComplete attribute to the cfTimeline tag.
This attribute accepts the name of a JavaScript function which it will call upon successfully loading your event source.

  • cfTimeline.getLatestDate()
  • cfTimeline.getEarliestDate()

Will respectively retrieve the latest/earliest date in your event source. Why would you want these dates? So you could pass them to:

  • cfTimeline.scrollToCenter()
  • cfTimeline.setCenterVisibleDate()

Which will either jump or scroll directly to a given date.

Also - the cfTimeline.loadXML() and loadJSON() functions now accept a callback handler parameter to enable you to perform some action when your event data is done loading (scrolling, etc). See docs for further details.

Just an FYI - I know I'm starting to get a lot of JavaScript functions tied to the tag - but I'm ok with that. I've tried to stay true to some of the format being used with CF 8 - which IMO is a very clean and easy to use API while doing all of the heavy lifting with the tags.

Comments (4)

Christian Ready's Gravatar I'm not sure, but I think you might still have version 1.0 there. When I downloaded it, it said V1.0 and the files were all dated April 19, 2007.

todd sharp's Gravatar You're right - weird. Now I'm getting an error on RIAForge when I try to upload.

I'll get the new version up as soon as thats resolved.

todd sharp's Gravatar OK the new version is up - sorry bout that :)

Chrisitan Ready's Gravatar Thank ya, sir!