Steve Bryant

Subscribe to Steve Bryant: eMailAlertsEmail Alerts
Get Steve Bryant: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Top Stories by Steve Bryant

Most sites have similar issues related to the site layout. I have seen many solutions that solve some challenges related to layout, but fail to handle others elegantly. I have found that using layout components elegantly solves all of the layout problems I have faced. What Do I Want? Here are my goals for handling layouts. I want to: Make edits to the layout in one place Easily switch layouts (per page, section, etc.) Switch to non-HTML formats (PDF, Word, etc.) Use any ColdFusion tags (like cfflush) Do without mappings and relative paths Add HTML to the See all of the layout in one file Avoid passing all page calls through one file (like index.cfm) Here is a quick example of switching to non-HTML formats: HTML: PDF: Word: Excel: www.... (more)

Error Handling in JavaScript

Have you ever been to a site and gotten a pop-up box telling you about a JavaScript error on the page? It can be really annoying. What's worse is that the person responsible for maintaining the site doesn't even know that the error occurred. This article isn't about ColdFusion error handling. That was covered in 2000 and 2001 in CFDJ by Charlie Arehart's four-part series, "Toward Better Error Handling," as well as by others. Rather, this article will tell you some ways to trap JavaScript errors on the client. More important, it'll tell you how to communicate these errors to ColdF... (more)

Reusable (and Maintainable) Presentation Code

Everyone knows that you should reuse your code so that you don't have to repeatedly write the same functionality. You put widgets in custom tags and encapsulate logic in CFCs. Even so, your application's user interface may frequently end up changing. Sometimes the changes are so substantial that it hardly seems worth the effort to try to reuse code at all. Your efforts to reuse code and separate business logic from presentation aren't worthwhile unless you can write your presentation code so that it will be easy to change to fit changes to your clients' needs or other business re... (more)

How To Create ColdFusion Tables

Steve Bryant's ColdFusion Blog I've written in the past about using DataMgr to make sure that the tables and columns you need exist. I have been asked a few times this week about making sure that those newly created tables are automatically loaded with data. If you don't know how to have DataMgr create the tables and columns you need, you can watch the "Synchronize Database Structure" presentation now. To review, in order to have DataMgr create tables and columns in DataMgr, pass XML to the loadXML() method of DataMgr (you can view the CFC doc for syntax). For example, the follow... (more)

tag.cfc 0.1: Write Your Own Code Generator

Back when I had some free time, I started working on my own code generator, partly because other code generators create code slightly different from my preferences and partly for the challenge. I have since gotten too busy to finish it, but I went ahead and finished the kernel component of the system - the one that actually generates the code. To download the component go to One advantage of ColdFusion being a tag-based language is that generating code for ColdFusion largely means writing tags. The best way that I can think to show how tag.cfc wor... (more)