Two simple ColdFusion calendar outputs

  • October 26, 2009
  • James Skemp
Here's two rough drafts of calendars created via ColdFusion (7, but I believe 6.1 would have the same functionality). Tables-based <cfparam name="URL.CalendarMonth" default="#Month(now())#" type="integer" /> <cfparam name="URL.CalendarYear" default="#Year(now())#" type="integer" /> <cfif URL.CalendarMonth LT 1 OR URL.CalendarMonth GT 12> <cfset URL.CalendarMonth = Month(now()) /> </cfif> <cfset VARIABLES.Calendar.StartDate = CreateDate(URL.CalendarYear, URL.CalendarMonth, 1) /> <table style=“width:375px;” summary=“Calendar of events for <cfoutput>#DateFormat(VARIABLES.Calendar.StartDate, ‘mmmm yyyy’)#</cfoutput>."> <thead> <tr> <th colspan=“7”><cfoutput>#DateFormat(VARIABLES.Calendar.StartDate, “mmmm yyyy”)#</cfoutput></th> </tr> <tr> <th>S</th> <th>M</th> <th>T</th> <th>W</th> <th>Th</th> <th>F</th> <th>S</th> </tr> </thead> <tbody> <cfloop from=“1” to="#DaysInMonth(VARIABLES.

Read More

ColdFusion: cfscript to determine if variable exists and output html-escaped

  • October 8, 2009
  • James Skemp
There may be an easier way to do this in ColdFusion, but I finally created a function to determine whether a variable exists and if it does, returns in, all html-escaped. <cfscript> // Checks the passed CF variable to see if it exists, and if it does, outputs a trimmed and html-ready version of the value. function checkForValueOutput(data) { if (IsDefined(data)) { return HtmlEditFormat(Trim(Evaluate(data))); } else { return ""; } } </cfscript> (Obviously, this can rather easily be converted to a function.

Read More

Collection down after opening - resolution

  • June 16, 2008
  • James Skemp
We've been running into an issue, off and on, with ColdFusion MX 7.0.2 having issues with Verity collections. During one of our nightly jobs, two Verity collections are purged, through ColdFusion, and then re-built.  Sometimes this will bring the collection down, resulting in a message like the following. Collection down after opening (10) Using the mdvdk executable, you can get some information about the collection, and even bring it back up.

Read More

Regular Expression tester - ColdFusion

  • January 10, 2008
  • James Skemp
I stumbled upon some code I had written back in September, for testing regular expressions. This uses ColdFusion, and is currently 'running' on ColdFusion MX 6.1 and ColdFusion 7.0. It's a pity to not make it available, since it's such an easy template ... <!--- --- --- DESCRIPTION:  Basic way to test a regular expression. CALLED BY: ??? CALLS: ??? ASSUMPTIONS: ??? MODIFICATION HISTORY: DATE USER ACTION 09/24/2007 J.Skemp Created template.

Read More

Quickie: Install ColdFusion 7.02 on Ubuntu 7.04 with Apache 2.2.4

  • June 15, 2007
  • James Skemp

Once again, may not be the best, but installing ColdFusion 7.02 on Ubuntu 7.04 (Apache 2.2.4 already installed).

Read More

ColdFusion MX 7 hosting, for free?

  • November 12, 2006
  • James Skemp

On this site, I have a number of articles discussing how to setup ColdFusion MX, both version 6.1 and version 7.0. These tutorials will get you up and running on your own computer, but there's no information on how to continue on to a real, live, host.

Read More

Is it past time for Microsoft to open IIS?

  • September 23, 2006
  • James Skemp
There's a reason PHP and Apache are so popular on the Web. It's the same reason that most beginner's, especially those that have no formal training, start with these technologies. In a word, both technologies are not only open source, but free to use. With the right guide, a user can be up and running with Apache and PHP in a couple of hours. Unfortunately, Microsoft's IIS (Internet Information Services) is something that few home-grown Web users have the honour of using.

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 4

  • August 28, 2006
  • James Skemp
In the previous three parts of this guide, we setup Apache 2.0.59 and then created the necessary connections to use ActivePerl, mod_perl, ColdFusion MX 6.1, ColdFusion MX 7.0.2, PHP 4.4.2, PHP 5.1.4, MySQL 4.1.18, and PostgreSQL 8.1.3. This time, we're going to bring everything together by creating a number of batch files to fairly easily switch between various Web server setups. What is a batch file? A batch file is basically a way to run a number of Windows prompts at once.

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 3

  • August 26, 2006
  • James Skemp
In Part 1 of this Apache 2.0.59 guide, we setup Apache 2.0.59 on a Windows XP SP2 machine. We also setup Perl and mod_perl, attempting to mimic our Apache 1.3.34 install. In Part 2 of this Apache 2.0.59 guide, we setup ColdFusion MX 6.1 and 7.0. This time, we'll be continuing in our quest by adding support for both PHP 4 and PHP 5. In previous guides, we installed PHP 4 and PHP 5, so if you need to install either one, do so with the above directions.

Read More

Installing Apache 2.0.59 to a Windows-based computer, locally: Part 2

  • August 25, 2006
  • James Skemp

In Part 1 of this Apache 2.0.59 guide, we setup Apache 2.0.59 on a Windows XP SP2 machine. We also setup Perl and mod_perl, attempting to mimic our Apache 1.3.34 install. This time, we'll be continuing in our quest by installing ColdFusion MX 6.1 and 7.

Read More