Darryl Lyons’ Blog

AJAX, ColdFusion and Web technology…

Entries Comments



Month: July, 2006

CFjsmin v2.0 JavaScript compressor released

25 July, 2006 (23:18) | CFjsmin, JavaScript | By: Darryl Lyons

CFjsmin v2.0 (beta) has been released. Specifically, this version adds support for compressing JavaScript strings.

Key features:

  • Specify the source as a string or file.
  • Specify destination as a compressed string or compressed file.
  • Compress multiple source strings or files to one destination string or file.

Download

Project page and usage…

IIS+SSL+CFCONTENT problems

24 July, 2006 (22:20) | ColdFusion | By: Darryl Lyons

Today I experienced a very strange problem, that I think a few of you have also experienced. If you are using SSL and IIS together, there is a known bug that prevents attachment downloads from working correctly if you are using cache control headers.

So, the following will not work.

CFM:
  1. <cfheader name="Content-Disposition" value="attachment;filename=thefile.csv">
  2. <cfheader name="pragma" value="no-cache">
  3. <cfcontent type="application/csv" deleteFile="No" file="path\to\file\theFile.csv">

But this will work.

CFM:
  1. <cfheader name="Content-Disposition" value="attachment;filename=thefile.csv">
  2. <cfcontent type="application/csv" deleteFile="No" file="path\to\file\theFile.csv">

Simile Timeline: DHTML Timelines

2 July, 2006 (11:50) | JavaScript | By: Darryl Lyons

Simile Timeline is a pretty cool project from the guys at MIT. They have developed a flexible timeline widget in DHTML that can be rendered horizontally or vertically. It uses XML as the datasource, and seems to cope with large datasets quite well. For instance, one of the examples plots 2000 years of Jewish history.

I think I will be playing with this at work, as we want to plot client activity within our CRM.

Thanks to the guys at Ajaxian for finding this.