Jeb Beasley

Subscribe to Jeb Beasley: eMailAlertsEmail Alerts
Get Jeb Beasley: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Jeb Beasley

This article demonstrates the basic technique for creating a custom ColdFusion tag. You can include custom tags in your templates just as you can any other CFML tag. This mechanism provides better modularity and reusablity. It's also possible to hide your code by encrypting custom tag templates. Before encrypting, be sure to maintain a separate copy of the source. Encrypting can't be undone. Bear in mind that the server processes all ColdFusion elements. A second version of the tag could wrap JavaScript to process the request. In this case client-side JavaScript would not require a trip to the server. A Concrete Example Overview A custom CFML tag can package logical sections of reusable html, cfml or scripting code. Implementation details are hidden in the tag. The tag code resides in a ColdFusion template, but it behaves more like a function or subroutine call. It ... (more)