O'Reilly logo

ColdFusion 8 Developer Tutorial by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mixing in the Media

This is a web-based presentation tool and the media are an integral part. As we are learning with prototypes, we will not be looking for a polished presentation here but rather a great example as a foundation for learning.

The first thing we did was to write a gallery CFC that could be replaced by real data if we wanted to move this into production. This is a way we can prototype our application. Here is the code for creating a prototype data collection for our example.

<cfcomponent output="false"> CFPresentationprototype data collection<cffunction name="getWorks"> <cfscript> var works = queryNew("title,image,audio,duration,note"); queryAddRow(works); querySetCell(works,"title","Barn"); querySetCell(works,"image","Barn.JPG"); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required