Getting Started with DataTables

A colleague came to me today trying to get the DataTables jQuery plugin working on a web page. The instructions on the datatables.net site don't seem to have a complete out-of-the-box example on how to get the plugin working. So here goes. Download the plugin from datatables.net. From within the zip archive you downloaded, navigate …

Setting SessionTimeout in CF9 and CF10

I ran across a thread on the CFWheels Google Group where someone was having problems with setting a session timeout. I remembered that I had the same problem a few weeks back. I didn't think anything of it after I found a solution though. Now, since I'm not the only one having this problem, I …

Installing ColdFusion 10 under MAMP Pro 2 on OS X Lion

I've been attending a whole host of ColdFusion 10 Developer Week 2012 sessions this week, and got inspired to upgrade my development machine to run ColdFusion 10. I had previously been running CF9 (developer) and MAMP Pro 2.0.5. These instructions will allow you to remove CF9 and install CF10. Installing and configuring MAMP Pro is …

Combining Two RSS Feeds in CFScript

In a previous post, I had written an example of combining two RSS feeds into one. At some point, I lost the code from the example, probably from clicking save one-too-many times in WordPress. WordPress is quite finicky about posting any kind of programming code. I did some research, and found PasteBin, and have started …

jQuery AJAX request for a JSON WordPress feed

Here’s a method to get a JSON feed with jQuery (version 1.7.1 at time of writing). This may work in earlier versions of jQueruy but I have didn't test it. Code walkthrough: Specify the feed URL. See notes in the code below for pre-requisites. Before sending the request, set the "result" div to show an …

ColdFusion Proxy to avoid Cross-Site Scripting

Here’s a method to get an JSON feed with ColdFusion. This will work in ColdFusion 7 and later. This is useful for avoiding cross-site scripting in Javascript/jQuery - You would simply call your remote feed on your local server, and then your jQuery would be able to call a "local" resource. Code walkthrough: Use CFHTTP …

Reading an RSS Feed in CFScript (ColdFusion)

Here’s a method to read an RSS feed with CFScript (ColdFusion). This will work in ColdFusion 9.0.1 and later. Code walkthrough: Use feed to read an RSS feed. This should return a Query object. If the result is a Query Object, loop through and display the items. If the result is not a Query Object, …

Reading an RSS Feed in ColdFusion with CFFEED

Here’s a method to read an RSS feed with ColdFusion. This will work in ColdFusion 8 and later. Code walkthrough: Use CFFEED to read an RSS feed. This should return a Query object. If the result is a Query Object, loop through and display the items. If the result is not a Query Object, display …

Getting an RSS Feed in ColdFusion with CFHTTP

Here's a method to get an RSS feed with ColdFusion. This will work in ColdFusion 7 and later. Code walkthrough: Use CFHTTP to generate an HTTP request and handle the response from the server. This should return XML. Use XMLParse to attempt to convert the CFHTTP.FileContent response into an XML document object. If the result …

Combining Two RSS Feeds in ColdFusion

It looks like WordPress has eaten my code samples on this one. I've re-written this code in CFScript and posted a fresh example. I've removed the blocks of code from this since they were gone anyway. One of the companies I work for posts a number of News stories on their site almost every day, …