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,...
Modernizr 2 has been released
Modernizr 2 has been released It seems I’m about 10 days behind…
CFInclude Problem on GoDaddy
Recently, I was involved in migrating a ColdFusion 7 website running on IIS 6 to GoDaddy’s Windows/ColdFusion hosting. Right off the bat, I ran into a problem with CFInclude. Here’s a sample of my code before the migration: <cfinclude template="/includes/pageheader.cfm"> The path here on the IIS server referenced the site root – meaning that the...
Displaying alerts on external links with JQuery
Raymond Camden posted an article this morning on displaying an alert to the user when you click a link that would leave/exit the website. In his example, he suggests adding an extra class to the links that require this feature. In my experience this kind of pop-up confirmation alert when clicking the link is often...
