Entries tagged with ‘ColdFusion’

XHTMLParagraphFormat() Version 3

Version 3 of the previously posted XHTMLParagraphFormat() ColdFusion function has just been released. Thanks to visitor and commenter Christopher Lewis for drawing my attention to a minor bug. Get it while it’s hot: Download XHTMLParagraphFormat() Version 3 I’d love to hear if you end up using this function or if you have any suggestions, fixes, […]

XHTMLParagraphFormat Version 2

UPDATE (Oct 23, 2006): This version of XHTMLParagraphFormat() is out of date. If you wish, you should check out the latest version. Unfortunately, I found a major error in the previously posted XHTMLParagraphFormat() function that caused it to not work properly under many circumstances. However, after doing some more research and testing, I banged out […]


UPDATE (Oct 23, 2006): This version of XHTMLParagraphFormat() is out of date. If you wish, you should check out the latest version. While reworking the athletics site, I realized that it was time to improve our less than perfect method for displaying news stories as HTML. The first obvious solution for formatting a chunk of […]

Regular Expression to find HTML links with title attributes

I recently needed to write a regular expression to find HTML and XHTML links with title attributes (<a href="http://www.gustavus.edu" title="Visit the Gustavus Adolphus College homepage">Gustavus</a>). Here it is: <a[[:print:]]*title=('|"")?(.*?(?=1))1?[[:print:]]*>([[:print:]]*)</a> Note that the [[:print:]] parts are applicable to ColdFusion regular expressions and would have to be changed to something else if you aren’t using ColdFusion. Additionally, […]

Application.cfc roundup

For those of you programming with more recent versions of ColdFusion, these links might be helpful when learning and working with Application.cfc files. Ray Camden’s Application.cfc PDF skeleton reference Coldfusion MX 7 Application.cfc Reference Extend the ColdFusion MX 7 Application Framework using ColdFusion Components Designing and Optimizing a ColdFusion Application Application.cfc, one that will work […]

Daylight Savings Time

Since the time change for the end of daylight savings last month, our iCalendar files on the college calendar have been using the wrong time. This was caused by our usage of a constant timezone modifier for adding to event start times and end times. As a result, whenever someone had added an event to […]

CF docs lookup

If you have never used it, you’ll be sorry that you didn’t know about it sooner. There is a brilliant tool for looking up anything in the ColdFusion documentation. It’s called CFDocs.org and it’s a definite time-saver. How it works: you set a cookie on your computer that tells CFDocs.org what version of ColdFusion you […]

CFLOCATION tags revised

Pete Freitag’s description of what CFLOCATION does alerted us to our misuse of the CFLOCATION tag for redirecting visitors from http://www.gac.edu to http://www.gustavus.edu. Apparently CFLOCATION sends the browser a 302 Moved Temporarily HTTP Status Code. Freitag suggests that one should send a 301 Moved Permanently HTTP Status Code using CFHEADER. However, the 302 temporary status […]