Tag Archives: "ColdFusion"



ColdFusion: Force Link to Download

Browsers are pretty sophisticated nowadays. They can open pretty much any type of file within the browser itself. But we don’t always want that to happen. Sometimes you want the file to automatically download when the user clicks a link. To do this, all we need to do is useĀ <cfheader> to update a file’s mime [...]

Also tagged , ,

Coldfusion: Passing Form Variables

While there’s some great things about ColdFusion, there’s also a lot of annoying things. One issue that used to drive my team nuts was passing form variables from one page to another. Should be easy enough but ColdFusion uses 2 separate objects to hold data depending on how the parameters are passed. If you pass [...]

Also tagged , , ,

Coldfusion: Remove All HTML

I’v been pulling a lot data from different websites lately. That data often has HTML in it that I don’t necessarily always want. This is a quick & easy way to strip all HTML from a var in ColdFusion. Example ColdFusion Code: <cfset textWithoutHTML = ReReplace(textWithHTML, ‘<[^>]*>’,”,’all’)>

Also tagged ,