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 …

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 …