Miscellaneous

A catch-all category for items that do not fit elsewhere.

Problems

How can ColdFusion generate an excel file?
Because recent Excel products support HTML table format, getting ColdFusion to generate and Excel fi...

How can I access/call functions in .Net classes?
As per the ColdFusion documentation, the <cfobject> tag can be used to access and use .Net cla...

How can I access/call functions in a C++ dll?
As per the ColdFusion documentation, the <cfobjec> tag can be used to create and manipulate Co...

How can I create page navigation that dynamically highlights the current page?
When displaying navigation to the user, it is a good idea to highlight the current page or section t...

How can I get user and Search Engine Friendly URLs?
Due to the dynamic nature of ColdFusion websites, you may find that some of your pages end up with a...

How can I tell the dimensions of an image in ColdFusion?
ColdFusion does not have native image support (i.e., the ability to manipulate images) although it h...

How can I use ColdFusion to check a mail account?
ColdFusion comes with a <cfpop> tag that allows you to both read and delete email from a POP b...

How do I create a vCard/ vCalender link and have it download to MS Outlook?
Use <cfcontent> and <cfheader> to set the appropriate MIME and header types, then includ...

How do I do a server-side relocation?
ColdFusion provides a tag to handle relocating the user, <cflocation>. This tag returns header...

How do I make a 301 redirect (permanently) from url1 to url2?
Permanently redirecting traffic using <cfheader> with statuscode="301" is the best way to ens...

How do I make a template pause(sleep)?
There is no native sleep or pause function in CFML. But with CFMX you can easily leverage Java and t...

How do I process CF code contained in a string (eg. text field in DB)?
Unfortunately CFMX 7 does not have a built-in feature to accomplish this task. You can how ever pul...

How do I programmatically create a new datasource?
The short answer is to use the Coldfusion Administrator API. The following is taken directly from...

How Do I Send An Email To Multiple Recipients Without All Email Addresses Being Listed in the To Line?
Use the query attribute of the <cfmail> tag. Doing this will iterate once over the cfmail tag...