Force file download

February 27, 2008

To force a file to download instead of opening in the browser use this code: <cfset variables.filepath = ExpandPath('myfolder') & variables.myfile /> <cfswitch expression="#LCase(ListLast(variables.myfile, "."))#&quo… Read more »

Sorting table rows with jQuery and ColdFusion

February 27, 2008

I posted a drag and drop example of sorting and saving a list using the jQuery sortables plugin. I was asked how this could be done with table rows. The jQuery TableDnD plugin comes to the rescue! It doesn’t have serialize method so you need t… Read more »

Generate Fusebox Circuits and Fuses document

February 26, 2008

Someone has just asked on Fusebox 5 group if there is a tool for Fusebox to generate a site map for development purposes. If you’re using the new fangled noxml version have a look here. For Fusebox xml users, this should do it. Hope it is usefu… Read more »

A ColdFusion 9 Suggestion

February 26, 2008

Please can we have the same functionality as the cfoutput group attribute in cfloop. For example: <cfloop query="qryFoo" group="mycolumn"> <cfloop> </cfloop> </cfloop> Thanks Adobe! Read more »

Coldfusion 8 - my favourite things

February 22, 2008

These new features rock! IsValid(’email’, mystring) cfdbinfo cffeed cfimage cflocation statusCode The cfdirectory type attribute cfloop attributes: characters, file, and array cfpdf cfzip DeserializeJSON FileClose FileCopy Fi… Read more »

Choosing DAO, gateway, scaffolding, framework and generator - build your own!

February 21, 2008

In the past couple of months I’ve built two applications, one which uses DAO, the other uses Gateway to see which is best. My conclusion: use whichever one suits your needs at the time! There are a multitude of code generator projects out ther… Read more »

Sortable list with jQuery and Coldfusion

February 21, 2008

jQuery has a really nice plugin called &ldquo;sortable&rdquo; that lets you reorder a list using drag and drop. It&rsquo;s really easy to get it up and running. In your display page you would have: &lt;cfoutput&gt; &lt;ul id=&quot;sortable&quot&hellip; Read more »

Fusebox is self documenting!

February 20, 2008

One of the interesting things about writing your Fusebox app as cfcs is that if you add the hint attribute to each function then you can create documentation for your web site. If you’re using the traditional XML version of fusebox then look h… Read more »

Want table sorting? - check out JQuery UI

February 20, 2008

I’ve noticed a few people reading my post about table sorting and paging with jQuery. If that’s what you’re interested in and don’t want to write any code then I suggest you take a look at jQuery UI, which includes the tableso… Read more »

Calling non fusebox cfm templates when using Fusebox 5.5’s Application.cfc

February 18, 2008

I’ve just encountered a problem where I wanted to run a non fusebox cfm script outside of Fusebox. If you use the Application.cfc supplied with Fusebox5.5, then it will route all requests to a cfm template through Fusebox regardless of what the… Read more »

Next Page »