LearnCF http://learncf.com Learn ColdFusion Tutorials Sat, 05 Jul 2008 20:12:35 GMT Using CFFEED to create a RSS Feed Tutorial http://tutorial27.learncf.com In this tutorial, I show how to retrieve information from a database and create a valid RSS 2.0 feed from this data. This tutorial should be easily adaptable for your own needs. Wed, 23 Jan 2008 13:00:00 GMT http://tutorial27.learncf.com Creating Square Thumbnails Tutorial http://tutorial26.learncf.com I recently worked on a project that allowed users to upload images and I then needed to create different versions of the image... a 1200 x N, 430 x N, and 75x75... wait it has to be square!? Yeah that was my first thought, nah that won't work What about stretching it? Nope that looks like junk What about white bars ALA Your DVD player? Image is too small and they want the image to fill up the whole square. Hmm how about a nice sized-down-then-chopped image? yeah that would look cool. So how do we do it? Tue, 22 Jan 2008 13:00:00 GMT http://tutorial26.learncf.com Random Images Tutorial http://tutorial25.learncf.com Have you ever wanted to simply pull a single random image from a specified folder on your site? This useful bit of code is just the thing. Mon, 21 Jan 2008 13:00:00 GMT http://tutorial25.learncf.com Get href labels using RegEx Tutorial http://tutorial24.learncf.com Ever wondered how you could use regex to find all the link labels in a string. Not the links - but the label for the link. It is relatively easy to grab all the matches for a regex in ColdFusion 8, consider the following code block: Thu, 29 Nov 2007 13:00:00 GMT http://tutorial24.learncf.com A Basic sleep() Tutorial http://tutorial23.learncf.com Ever wanted to pause a currently running request? You can now, in CF8, using the new sleep() function. Some will recognize it as an easier way to call the java thread.sleep method. It's been added primarily as part of the multi-threaded processing (CFTHREAD) feature, such as when one thread needs to wait upon another. But it can be useful sometimes on its own, such as when you want to simulate a long-running request for any reason. (And it's a whole lot more server-friendly than doing a huge cfloop, since a sleep call doesn't really spin the CPU. It literally halts the current request, putting it to "sleep".) Sat, 01 Dec 2007 13:00:00 GMT http://tutorial23.learncf.com Create a Watermark using CFIMAGE Tutorial http://tutorial22.learncf.com I was thinking it would be cool if ColdFusion could watermark images for me. After about 30mins playing around I came up with this. Sun, 25 Nov 2007 13:00:00 GMT http://tutorial22.learncf.com Transparent Images with ColdFusion 8 Tutorial http://tutorial21.learncf.com ColdFusion 8's new Image manipulation functionality is pretty awesome, I think we can all agree on that. The documentation on how to use it is also very clear on all aspects except on the topic of creating transparent images. The live docs are not only unclear as to how one can do this but also whether or not this is even be done with CF8. Mon, 26 Nov 2007 13:00:00 GMT http://tutorial21.learncf.com Generate XML Tutorial http://tutorial20.learncf.com As of ColdFusion MX, there are several tags and functions that make working with XML a snap. In this tutorial I am going to demonstrate how to use these tools to generate an XML document. Thu, 22 Nov 2007 13:00:00 GMT http://tutorial20.learncf.com Using CFIMAGE to Generate Thumbnails Tutorial http://tutorial19.learncf.com Here is a tutorial I created using the new CFIMAGE tag in Coldfusion 8 to create thumbnails. Sun, 18 Nov 2007 13:00:00 GMT http://tutorial19.learncf.com Parsing XML Tutorial http://tutorial18.learncf.com There are many, many uses for XML, and if you use ColdFusion to consume web services, or create data integration processes, then chances are, you will need to work with XML. As of ColdFusion MX there are several tags and functions that make working with XML a snap. In this tutorial I am going to focus on teaching you how to pull the information you need out of XML documents. Thu, 15 Nov 2007 13:00:00 GMT http://tutorial18.learncf.com Using CF8 and .NET to get OS Information http://tutorial17.learncf.com This Tutorial describes how to get the following Operating System Information from ColdFusion using .Net functions. Hard Disk Information IP and Computer Name Mac Address Computer Information Tue, 23 Oct 2007 14:00:00 GMT http://tutorial17.learncf.com ColdFusion 8 Dynamic Menu Tutorial http://tutorial16.learncf.com One of my pet peeves is that I can never find realistic working examples of CF code in the documentation. Yes there are many examples on CFMenu static code that demo the features, but my code shows how to build a dynamic menu from a database query using the cfdocexamples database installed with CF8. Tue, 23 Oct 2007 14:00:00 GMT http://tutorial16.learncf.com Accessing .NET Hashtable in ColdFusion Tutorial http://tutorial15.learncf.com A .NET hashtable can be used as a Structure in coldfusion, the example below explains the necessary steps. Create a Class Library which generate Hashtable (collection or structure) Call the .Net method from Coldfusion Thu, 18 Oct 2007 14:00:00 GMT http://tutorial15.learncf.com New CF8 File Functions Tutorial http://tutorial14.learncf.com This tutorial shows you some of the new ColdFusion 8 file based functions. It takes a file and appends lines to it until it reaches a size then starts again. Wed, 17 Oct 2007 14:00:00 GMT http://tutorial14.learncf.com Ajax is Easy with CFAJAXPROXY Tutorial http://tutorial13.learncf.com How hard is doing Ajax? Well with ColdFusion 8 it's easy, very easy. This tutorial, shows just how easy it is to call CFC methods both without and with paramaters. Not only is it easy, the calls are quick, if you haven't tried Ajax, this is a must read. In case you are not sure what Ajax is, it's the ability to communicate from the browser back to a server, without the need for page refreshes. The Ajax calls can also return values, so you have two way communication. You will notice that the results of the buttons in the demos are very quick and the browser does not refresh. Tue, 16 Oct 2007 14:00:00 GMT http://tutorial13.learncf.com Using CFPRESENTATION Tutorial http://tutorial12.learncf.com This tutorial provides an introduction to using the CFPRESENTATION and associated tags. Sat, 13 Oct 2007 14:00:00 GMT http://tutorial12.learncf.com CF8 Accessing .NET DLLs Tutorial http://tutorial11.learncf.com This tutorial provides an example of Coldfusion 8 and .net integration. Wed, 26 Sep 2007 14:00:00 GMT http://tutorial11.learncf.com Auto Save Form Tutorial http://tutorial10.learncf.com ColdFusion 8 cfform tag comes with javascript libraries that enable AJAX form submission. This example ties this in with some Javascript to autosave the form at a specified number ofmilliseconds. Wed, 26 Sep 2007 14:00:00 GMT http://tutorial10.learncf.com Return Identity Values Tutorial http://tutorial9.learncf.com If you are using a database table with an identity (auto-increment) field, ColdFusion 8 can automatically return the newly created field value for you, without needing a trigger or a subsequent <CFQUERY>. All you need to do is look in the <CFQUERY> optional RESULT structure, and if available the value will just be there. This feature is very DBMS and driver specific (and may not work with all databases), and the name of the structure member containing the generated value is different based on the DBMS being used. Here are the ones you should be aware of: SQL Server: result.IDENTITYCOL Oracle: result.ROWID Sybase: result.SYB_IDENTITY Informix: result.SERIAL_COL DB2: result.KEY_VALUE MySQL: result.GENERATED_KEY (MySQL 4+) Apache Derby: result.IDENTITYCOL Thu, 13 Sep 2007 14:00:00 GMT http://tutorial9.learncf.com CFFORM with Custom onSubmit Tutorial http://tutorial8.learncf.com I've seen a couple of people trip over this so I thought I'd write something about the issue. Mon, 10 Sep 2007 14:00:00 GMT http://tutorial8.learncf.com Simple Auto Suggest Tutorial http://tutorial7.learncf.com This tutorial shows just how simple an Auto Suggest field is with ColdFusion 8 Sun, 09 Sep 2007 14:00:00 GMT http://tutorial7.learncf.com Basic CFWINDOW Tutorial http://tutorial6.learncf.com Gone are the days of cumbersome javascript popup windows. Enter CF8's CFWINDOW! We all use, at some time or another, popup windows; CFWINDOW is a very simple yet affective way of achieving these. Let’s break down the CFWINDOW tag and see how simple this tag really is. Sun, 02 Sep 2007 14:00:00 GMT http://tutorial6.learncf.com CF can do OO Tutorial http://tutorial5.learncf.com This is a basic example of OO in CF Thu, 30 Aug 2007 14:00:00 GMT http://tutorial5.learncf.com Simple introduction to CFIMAGE Tutorial http://tutorial4.learncf.com This is a simple introduction to the new CF image tags and some of the neat and easy features. Thu, 30 Aug 2007 14:00:00 GMT http://tutorial4.learncf.com Simple Charting with CFCHART Tutorial http://tutorial3.learncf.com This tutorial shows you how simple it is to chart data using CFCHART. Wed, 29 Aug 2007 14:00:00 GMT http://tutorial3.learncf.com Tabs With CFLAYOUT Tutorial http://tutorial2.learncf.com This tutorial shows some of the features that you can easily achieve using the <cflayout and <cflayoutarea tags. Tue, 28 Aug 2007 14:00:00 GMT http://tutorial2.learncf.com Paging With CFGRID Tutorial http://tutorial1.learncf.com This tutorial shows how simple it is to do paging of a recordset using CFGRID. Mon, 27 Aug 2007 14:00:00 GMT http://tutorial1.learncf.com