Previous Issue Current Issue Main page Next Issue
Fusion Authority Fusion Authority
The House of Fusion Technical Magazine
Issue: 35

August 7, 2000
August 13, 2000
This is an opt-in magazine. To join, leave or change subscription mode, please visit the signup page. All content of this magazine is copyright Fusion Authority, Inc. It may not be reproduced without permission.

Community
Fusion Authority Readers: Get Your Discount Now for Memphis Ecommerce Conference!
Portland CFUG to host Fusebox Panel
Will We See You in Charlottesville?
ColdFusion Site Offers Extensive Links
New FREE ColdFusion Hosting and Tips Site
Mark Your Calendar for the Allaire Developer's Conference
ZDNet Looks at the Cost of Doing Internet Business
Allaire's DevCenter News Index
Allaire's Consulting Practices Have Been Updated
 
News
SecretAgents.com Launches New Testing Tool
Relaunch of Crayola.com Powered by ColdFusion
eStar.com Standardizes on ColdFusion and Chuckwalla for Broadband Media Management
BrightStreet.com to Debut Privacy Manager
Novera Announces JBusiness for ColdFusion
Starbase Corp. Announces the eCollaboratory
Anderson Computers/Tidalwave and Beyond.com Rank HomeSite Among Top 10 Software Products
 
Tech and Tags
What's new in the Tag Gallery
Using CFFILE with IE to Upload Larger Files
Allaire Releases ColdFusion 4.5.1 NT Performance Guide
Intraware Article Focuses on Content Management, Architecture and Spectra
CNet Builder's Tag Mania Column Focuses on the Nonbreaking Space
Allaire Offers an On-Line Developer's Tour of New Features in ColdFusion 4.5
Allaire Spectra Hot Fixes
Allaire White Paper: Spectra Cacheing Strategies
ColdFusion Powers Online Yellow Pages Directory
 
Techniques
Fusebox (An Overview) Part III
QuickTip: Using Name (Label) Links with CFLOCATION
Locking in ColdFusion
Test Your Knowledge
 
Security
Bugs Afflict Microsoft, Netscape, Sun
Microsoft Internet Explorer Scriptlet Rendering Vulnerability
Netscape Communicator URL Read Vulnerability
Allaire Security Bulletin (ASB00-18)
Allaire Security Bulletin (ASB00-19)
 
Knowledge Base
ColdFusion Server 4.5.1 Installation and Configuration on Slackware Linux 7.0
ColdFusion Server 4.5.1 Installation and Configuration on SuSE Linux 6.4
 
Stock
The Wall Street Transcript Interviews Jeremy Allaire
Quote.com Makes Predictions of Near Term Growth for Allaire
Allaire Releases SEC-10Q for 2Q2000
Allaire Files S- 8 Employee Plan with SEC
CSFB Reiterates Its _Buy_ Rating for Allaire Corp.
Weekly Numbers
 

Community

Fusion Authority Readers: Get Your Discount Now for Memphis Ecommerce Conference!

There's still time to register for the Ecommerce Development with ColdFusion Seminar, taking place Tuesday, August 29th thru Thursday, August 31st at the Fogelman Executive Center, University of Memphis in Memphis, Tennessee. The seminar, a fully catered event with a friendly, classroom atmosphere, "brings together all the information you need to get started developing solid ecommerce systems, then shows you where to go to hone your skills once you're back on the job. " It includes a collection of tools and code to jump start your ecommerce projects. Presenters are Adam and David Churvis, creators of the CommerceBlocks line of modular ColdFusion development tools. (Adam Churvis was the presenter at TeraTech's well-received February E-Commerce conference, and is a well-known CFUG speaker.)

Every participant is given a binder with a printout of all the slides used in the presentation, plus a listing of code highlights covered. After the seminar, attendees get to download the CommerceBlocks Explorer application, and receive a paid license to their choice of CommerceBlocks module: DatabaseBlocks V2.0, ShopBlocks, or BallotBlocks. They can also download the complete listings of all code highlighted during the seminar.

Fusion Authority readers get a special discount pass for $195 (less than half of the regular $395 conference price) for three days of solid ecommerce information. To get your Special Price Pass, send an email request to registration@coldfusionseminar.com and they'll send you back a PassCode. Mention that you're a Fusion Authority reader.

Make sure to have this PassCode ready BEFORE you register on http://www.ColdFusionSeminar.com, or you will not receive the special discounted price.

Registration closes soon, so register now! For complete details, go to http://www.ColdFusionSeminar.com.

Seminar Itinerary:
Part 1: ColdFusion and Ecommerce Development
Part 2: Introduction to Ecommerce
Part 3: Taxation
Part 4: Shipping and Handling
Part 5: Payment Processing
Part 6: Designing the User Experience
Part 7: Implementing the User Experience
Part 8: Managing an Ecommerce Development Project
Part 9: Integrating the Merchant
Part 10: Ecommerce Site Maintenance
Part 11: Scalability
Part 12: Database Design Essentials
Part 13: The Importance of Data Warehousing and Data Mining
Part 14: Implementing Data Warehousing and Data Mining
Part 15: Server-to-Server Integration
Part 16: Putting It All Together
Part 17: Hosting an Ecommerce Site
Part 18: Security
Part 19: Legal Considerations
Part 20: Things Every Ecommerce Developer Should Do
Part 21: Resources

[Top]

Portland CFUG to host Fusebox Panel

Fusebox Book Handouts Part of the Package

Some innovative programming out of the Portland, Oregon CFUG. Tomorrow night, August 17, 2000, they will be hosting a panel on "Developing with Fusebox." Their description: "A panel of Fusebox developers will deliver a presentation on how to build ColdFusion applications using the Fusebox methodology. A question and answer session will follow. All individuals interested in ColdFusion and the Allaire platform are welcome to attend." Attendees will receive a sample chapter and Table of Contents from Fusebox: Methodology and Techniques (ColdFusion Edition), and a survey form to poll their reactions to the materials.

The head of the Portland CFUG, Jeff Cram, expects 35-50 people in attendance thanks to strong local media coverage and word of mouth buzz in the developer communities. Cram said that there has been high interest from the group to learn more about Fusebox at the developer level, looking at tangible coding examples and sample sites. Way to go, Portland!

The meeting starts off with a food and networking period (5:45-6:30 p.m.). The panel itself runs from 6:30-8:00 p.m. Location: The Portland Community College Workforce Training Center, 1626 S.E., Water Ave. in room 4.

The meeting is open and free to everyone. Please contact Jeff Cram at (503) 221-9860 x103 or jcram@isitedesign.com for more information.

[Top]

Will We See You in Charlottesville?

Reminder: Registration is now open for Fusebox.org's upcoming Fusebox Developers Conference, to be held Saturday, September 16th, 2000, at the Cavalier Inn, in Charlottesville, VA. Come get an early copy of Steve Nelson and Craig Girard's new book, "Fusebox: Methodology and Techniques (ColdFusion Edition)," FREE with your registration.

Fusebox Developers Conference Registration Site

[Top]

ColdFusion Site Offers Extensive Links

Thanks to Bill Guttman (Katun@mindspring.com) for his tip on a ColdFusion site with perhaps one of the most extensive list of ColdFusion links I have seen. The links can be found at http://www.katungroup.com/coldfusionlinks2.htm. Thanks for the tip, Bill! Happy surfing, everybody.

[Top]

New FREE ColdFusion Hosting and Tips Site

Fusion Authority notes with interest the newest entry into the Internet Wars: http://www.nsnd.com/. The site offers "free ColdFusion hosting," access to a ColdFusion Job Bank and the CFTips e-zine.

NSND.com

[Top]

Mark Your Calendar for the Allaire Developer's Conference

Normal registration is still open for this year's Allaire Developer's Conference, to be held November 5-8, 2000, at the Marriott Wardman Park Hotel in Washington, D.C. Last year's event was sold out, so make sure you're on the list! "Be there or be square!"

Allaire Registration Site

Conference Session Titles, Descriptions and Schedules

[Top]

ZDNet Looks at the Cost of Doing Internet Business

ZDNet Charles Cooper remembers when JJ and Jeremy Allaire explained why they picked New England over Silicon Valley and takes a fresh look at "Silicon Valley: Can the Good Times Last?"

Silicon Valley: Can the Good Times Last?

[Top]

Allaire's DevCenter News Index

Here's an index of the top stories available on the Allaire DevCenter.

Allaire DevCenter News — July 2000

[Top]

Allaire's Consulting Practices Have Been Updated

Allaire's in-house consulting arm has posted new information about the services they offer. This information will prove very informative to developers as it points out important things to look over on any project.

Allaire's Consulting Arm Information

[Top]


News

SecretAgents.com Launches New Testing Tool

SecretAgents.com, a new venture by Steve Nelson (longtime ColdFusion programmer known for his work on Fusebox) will be offering a ColdFusion code testing tool, the first in a series of tools geared for ColdFusion developers. This tool "will search through your ColdFusion code looking for errors. It contains over a 100 different common mistake tests varying from speed suggestions to security holes to hard errors."

Pricing for this new product, while not finalized, is estimated in the range of $25-50 per test, with bulk rate prices for unlimited tests. A "lite" version of this tool will be included in the upcoming book by Steve Nelson and Craig Girard, Fusebox: Methodology and Techniques (ColdFusion Edition), due out in November 2000.

Of special interest to developers is the chance to register to use this testing tool in the first month of its release. (To test how big a load SecretAgents.com can handle, the site is only accepting applications from 100 developers.) So hurry up and register today!

SecretAgents.com Website and Registration Form

[Top]

Relaunch of Crayola.com Powered by ColdFusion

NEWTON, Mass., Aug. 8 /PRNewswire/ -- Allaire Corporation has announced that Binney & Smith, the leading producer of children's art materials and maker of Crayola(R) products, has chosen Allaire ColdFusion to power the re-launch of Crayola.com. The new site will offer interactive arts and crafts solutions for parents, educators and children.

World's Most Colorful Company Chooses Allaire ColdFusion To Power Content-Rich Site And Handle Increased Traffic

Crayola.com Relaunch Uses ColdFusion (Company Sleuth News)

[Top]

eStar.com Standardizes on ColdFusion and Chuckwalla for Broadband Media Management

MILPITAS, Calif., Aug 7, 2000-- Chuckwalla, Inc. has announced that eStar.com a celebrity Website, successfully implemented the Chuckwalla(TM) system in just six short weeks. The integrated Chuckwalla Broadband Media Management solution will allow eStar to dynamically publish rich media to the eStar Website, syndicate rich media to eStar customers and affiliates, and handle rights management. In the six weeks frompurchase to full implementation, eStar used the Chuckwalla Software Development Kit (SDK) to integrate Chuckwalla's Broadband Media Management system with ColdFusion, Allaire's Web development platform.

eStar.com Standardizes on ColdFusion (Northern Light News Alert)

[Top]

BrightStreet.com to Debut Privacy Manager

Aug 15, 2000 (Tech Web - CMP via COMTEX) -- The recent uproar over online privacy has prompted the development by BrightStreet.com, a software developer and host, of Privacy Manager. The new software module, which integrates with Java, ColdFusion and Brightstreet's other online promotion software, promises to allow consumers to check and control/edit personal information on their preferences, shopping needs, and online profile. Changes are made and accepted in real-time.

BrightStreet.com To Debut Privacy Manager (Northern Light News Alert)

[Top]

Novera Announces JBusiness for ColdFusion

Novera Software, Inc. has announced a technology alliance to integrate jBusiness, a leading solution for integrating enterprise information with the Web, with Allaire's ColdFusion, the leading cross-platform Web application server. The jBusiness-ColdFusion integration enables Web and IT application developers to quickly create and deploy new ColdFusion applications that integrate enterprise information for competitive advantage. Novera's jBusiness is a distributed application and management framework that allows customers to encapsulate business logic and data from legacy systems into enterprise business objects based on CORBA and Enterprise Java Beans (EJB).

Novera Announces JBusiness for ColdFusion (The International Java Club--Look Near the Bottom of the Page)

[Top]

Starbase Corp. Announces the eCollaboratory

SANTA ANA, Calif., Aug 15, 2000 (BUSINESS WIRE) — Starbase Corp., a leading provider of collaboration products for the creation and management of integrated code and content eBusiness applications, has announced the eCollaboratory, a ground breaking and broad-based initiative enabled by StarTeam's collaborative framework. This initiative aims to achieve meaningful and adaptable integrations among leading eBusiness products. Allaire's eBusiness products are among those included in the initial announcement.

"Inherent in the concept and design of the eCollaboratory is the objective of satisfying the marketplace's desire to better and more rapidly integrate best-of-breed eBusiness enabling technologies."

Starbase Corp. Announces The eCollaboratory (Northern Light News Alert)

[Top]

Anderson Computers/Tidalwave and Beyond.com Rank HomeSite Among Top 10 Software Products

FORT LAUDERDALE, Fla., Aug 8, 2000 (BUSINESS WIRE) -- Anderson Computers/Tidalwave Corp. an affiliate of Beyond.com(TM), has announced its ranking of the Top 10 best selling software and hardware titles to its consumer and business clients. HomeSite 4.5 ranks fourth in this stellar rating of software products to meet personal and business needs.

Anderson Computers/Tidalwave and Beyond.com Announce Top 10 Software Products (Northern Light News Alert)

[Top]



Tech and Tags

What's new in the Tag Gallery

CFX_ReplaceInQuery
This ColdFusion custom tag allows you to perform global replacements within queries with virtually no decrease in performance. It is convenient for replacing NULLs and empty strings, but it may be used for any string. All you have to do is place the tag below your query and supply the name of the query. The specified OrigString (e.g., "", which includes both NULL values and empty strings) will be replaced with a user-specified ReplaceString (default is '-').
CF_DHTMLQUERY
CF_DHTMLQUERY generates a table (like CF_DUMPQUERY), but each column is client-side resortable (using DHTML) if they are using IE4+. Otherwise a normal table is generated.
cf_states
CF_states is a ColdFusion custom tag that displays the two-letter state abbreviation, or a state's full name in a select list. It allows the user to select one or multiple states, background and text colors, and fonts.
Spectra Studio Integration
Creates full Studio integration for all the tags in the Allaire Spectra Tag Reference Documentation. Extends the Spectra toolbar so it is possible to insert an object ID directly into a page in Studio.
CF_IncrementAlpha
CF_INCREMENTALPHA takes an initial letter or series of letters (or word) and increments the last letter. This tag would be useful if you had a series of items and wanted to identify them with a series of letters instead of numbers.
e-church
Provides an affordable web solution for small- to medium-sized churches. Most of the content on the site is dynamic, running on an Access 2000 database. It puts control of the website into the hands of the local church staff, virtually eliminating the continuing costs of site maintenance. The church staff does not need to have any knowledge of web design or development to maintain an updated and fully functional web site. Includes church mission, ministries, bulletin, facilities tour, contact information, and worship services. Open source code--easy to customize!
CF_ROWS
This is especially created for work with CF_ResultPages. See in that tag how they work together (although you can use CF_ROWS tag just for setting the StartRow (for CFOUTPUT cases), the EndRow (for CFLOOP cases), and the maxrows (for either)).
LightningDOCS
LightningDOCS is our comprehensive application for document management. This personalizable application features a secure login form, online help documentation, and more.
BrowserRedirect
Automatically generates Javascript that redirects the user based on his/her browser and platform. Allows the developer to choose distinct URL's for each browser/platform combination.
CF_ResultPages
Displays the Result Pages of a query and lets you link to next or previous pages and next and previous series of pages. So you can pass from ten to ten pages or the number you specify in maxpages=" ".
urlPipe
The urlPipe is a set of three Java classes (now includes source code) that expand the power of Internet browsers by allowing data to be exchanged with a web server without having to post back each page. Instead, urlPipe uses sockets to communicate with the parent web server.
Plain text to HTML URLs
This tag finds URL's (like http://mail.yahoo.com) in the middle of plain text. It is not currently a custom tag, but could easily be made into one. If you've downloaded it recently, go to my site and get the newer, much more powerful, version for free.
html2PDF
Here is a custom tag (cfx_html2PDF) that will take the contents of static html page and write them to Adobe PDF on the fly. What I do is dynamically generate a static html page based on some user input or db input, and then I run this tag on it. You can format the html page the way you are familiar with (give it the look and feel). This will give you the PDF you are looking for. Once I've written the PDF out, I then delete the static html file that was dynamically generated and make the PDF available to the user. This tag is currently unsupported and I've only tested it on NT4.0 and IIS.
CF_Romanize
CF_ROMANIZE takes any positive whole integer and recreates it as a Roman Numeral. Any whole number, starting with 1, will easily convert into Roman Numerals. It's pretty simple, actually! To install, simply place the tag (ROMAINZE.CFM) in your Custom Tags directory under CFUSION!

[Top]

Using CFFILE with IE to Upload Larger Files

The following bug was reported on the CFAUSSIE list by Craig Harcombe of Danaclese (webmaster@danaclese.com.au):

"Issue: Trying to use CFFILE with IE (5 and 5.5, other browsers not tested) to upload larger files (test file 4.2meg) over an internet connection. Files less than 1 meg worked fine, 4.2 meg file would almost instantly return a 'Page Not Found' error in IE when the 'Upload Now' button clicked.

"Why: As far as we can tell, IE doesn't seem to be able to handle browser based uploads of larger files when there is a proxy server involved 'at all.' If you have a direct connection to the internet you are fine. If you have a dialup connection to your ISP and you are not forced to their proxy, you are fine."

Example Given:

"I have a permanent dialup connection. I use my ISP's proxy for general browsing. If the proxy is set up in the Tools>Internet Options>LAN Settings, I'm stuffed when I try to use IE to upload the files to the site (despite the site being hosted at that ISP). I went into the advanced LAN settings and put the client's domain in the 'Exceptions' box and the CFFILE upload worked every time (no intervening proxy). I took the proxy setting off the connections settings completely and it worked perfectly (no intevening proxy).

"My client's workstation accesses the internet through a proxy server over a LAN through msproxy. Uploads from his workstation fail. Do the same thing from [the company's] server and it works (no proxy), BUT ONLY as long as my client's ISP doesn't force them to use a proxy at their end.

"I reported in my initial posts that I had success with Netscape in all circumstances. My success here may have been because I didn't have a proxy set up in [my Netscape] preferences, [but I'm] not sure. I'll let you know when/if I test it further. I'm going to wait till my hair grows back though ;-)"

Thank you, Craig. If anyone else has some more information on this bug, please email the editor at Fusion Authority (editor@fusionauthority.com).

[Top]

Allaire Releases ColdFusion 4.5.1 NT Performance Guide

Allaire has released a document outlining ColdFusion's performance and configuration considerations. Here's the URL:

ColdFusion 4.5.1 NT Performance Guide

[Top]

Intraware Article Focuses on Content Management, Architecture and Spectra

In this Intraware article, Phil Costa, Senior Manager of Strategic Marketing at Allaire, writes about Allaire Spectra's underlying architecture for content management.

Content Management: Focus on Architecture First

[Top]

CNet Builder's Tag Mania Column Focuses on the Nonbreaking Space

An important heads-up even for more advanced ColdFusion developers. Most programmers and web designers employ a variety of techniques, such as tables and transparent GIFs, to arrange text and images on a Web page. CNet's Paul Anderson reminds everyone that the nonbreaking space (i.e.,  ) can still be used to accomplish many layout tasks with ease.

The Beauty of the Nonbreaking Space

[Top]

Allaire Offers an On-Line Developer's Tour of New Features in ColdFusion 4.5

To answer the question, "How will ColdFusion help the Web developer do his/her job better, " this article details the new features and improvements in ColdFusion 4.5 that ColdFusion developers will use most. The focus is on four areas key to developers' decision-making process: Rapid Development; Scalable Deployment; Open Integration; and Complete Security.

A Developer's Tour of New Features in ColdFusion 4.5

[Top]

Allaire Spectra Hot Fixes

Here's the URL for the latest and greatest of Allaire Spectra's 1.0.1 Hot Fixes.

Allaire Spectra 1.01 Hot Fixes

[Top]

Allaire White Paper: Spectra Cacheing Strategies

Here's where to pick up your copy of the Spectra Cacheing Strategies white paper.

Spectra Cacheing Strategies White Paper

[Top]

ColdFusion Powers Online Yellow Pages Directory

Allaire continues its Spotlight series with a look at QuillPages.com, an interactive Yellow Pages directory with a twist. In addition to listing businesses like traditional online Yellow Pages, QuillPages offers graphics, text, and interactive features.

Feature Article on QuillPages.com

[Top]


Techniques

Fusebox (An Overview) Part III

The Finer Points of Fusebox

By Eron Cohen and Michael Smith

AppGlobals.cfm and AppLocals.cfm

In parts I and II of this series, you've seen us go through the physical setup and the coding logistics of a Fusebox application. Now, in part III, get ready to discuss the finer points of coding in Fusebox.

As we discussed in part II of this article, one of the most important ideas in the Fusebox methodology is that you break your code up into small modules and then use the ColdFusion CFINCLUDE statement to reconstitute the needed pieces back into your application on the fly. CFINCLUDE simply embeds the requested code back into your application as required.

A typical application is going to need more than just a few CFINCLUDES to make it complete. There needs to be a vehicle to set default variable values and to hold important ColdFusion tags such as CFAPPLICATION. In a Fusebox application, this is done through two files that always get included at the top of every INDEX.CFM file BEFORE your CFSWITCH statement. These are your app_locals.cfm and app_globals.cfm files.

These two files are really going to save you time! Any Fusebox application will always contain one and only one app_globals.cfm file. Its purpose is to house global variables, default values and any directives that will be needed for every part of your application. Its contents will always wind up at the top of every page of your application. This is accomplished by using CFINCLUDE to include the file's contents at the top of the app_locals.cfm file. Aside from conveying the values of the app_globals.cfm file, the app_locals.cfm file is basically used to house the values of variables that will only be needed for "local" sections of your application. A simple Fusebox application will only need one app_locals.cfm file. A more complex application could have many of them. To help clarify this, have a look at these two file listings:

App_Globals.cfm:
<CF_FORMURL2ATTRIBUTES>
<!---Set up the application file --->

<cfapplication name="MyApplication" sessionmanagement="yes" 
     clientmanagement="YES" setclientcookies="YES">

<!---Set up the default database name for the entire application --->

<CFPARAM NAME="application.dsn" DEFAULT="MyDatabaseName">

App_Locals.cfm:
<CFINCLUDE TEMPLATE="app_globals.cfm">

<!--- set the default fuseaction for this section of the app, 
     in case none is given --->

<cfparam name="fuseaction" default=" Sign_Up_For_Newsletter_Form ">

At the top of your INDEX.CFM file, you would need the following statement:
<CFINCLUDE TEMPLATE="app_locals.cfm">

As explained above, this would cause the app_locals.cfm file to be included, which in turn would include the app_globals.cfm file. You’ll want to put default values for your application in these two files. This way, whenever someone needs to change default values of some variable in your application, they can avoid opening up your code to search for the values. If they’re familiar with Fusebox, they’ll know right away that they can go directly to these two files.

Attribute Variables and <CF_FORMURL2ATTRIBUTES>

The use of attributes variables is essential to encapsulating an entire application so that it can be called as a custom tag, using <CF_TAGNAME> or <CF_MODULE>. To help facilitate this, all variables that are changed by users within a Fusebox application should be scoped with "attributes" in your app_globals file. This is done with a custom tag, which you'll see at the top of the app_globals.cfm file listed above: <CF_FORMURL2ATTRIBUTES>. This tag is an important part of a standard Fusebox application. It can be downloaded from www.fusebox.org’s custom tags area. Its main purpose is to change the scope of "URL." and "form." variables and convert them to the "attributes." scope. This allows a Fusebox application to become both a standalone application and a CF Tag, which makes it much more portable.

Index.cfm

The ColdFusion Fusebox file (Index.cfm) is made up of only two sections:
  1. The first is responsible for a definition of variables that will affect the entire application. The normal way to do this is to CFINCLUDE your app_locals.cfm file, which in turn includes your app_globals.cfm file.
  2. The second part of Fusebox is responsible for direction. At any one time, the app has only one fuseaction. Each user action is associated with a fuseaction. A single <CFSWITCH> statement determines the value of this variable that directs the program flow.

A Sample Index.cfm File:

<!-- Part I: Definition of Variables
	Includes app_locals.cfm, which includes appglobals.cfm --->

<CFINCLUDE TEMPLATE="app_locals.cfm">

<!-- Part II: Direction of Fusebox Flow 
	Each CFCASE statement indicates a different fuseaction,
	and involves different fuses (all CFINCLUDEd)  --->

<CFSWITCH expression="#attributes.fuseaction#">

	<CFCASE value=“Sign_Up_For_Newsletter_Form">
		<CFINCLUDE template="/public/Main/blocks/dsp_html_header.cfm">
		<CFINCLUDE template="/public/Newsletter/blocks/dsp_reg_form.cfm">
		<CFINCLUDE template="/public/Main/blocks/dsp_html_footer.cfm">
	</CFCASE> 

	<CFCASE value=“Sign_Up_For_Newsletter_Form_Submitted">
		<CFINCLUDE template="/public/Main/blocks/dsp_html_header.cfm">
		<CFINCLUDE template="/public/Newsletter/queries/qry_chk_for_dups.cfm">
		<CFINCLUDE template="/public/Newsletter/blocks/dsp_reg_thnk_you.cfm">
		<CFINCLUDE template="/public/Main/blocks/dsp_html_footer.cfm">
	</CFCASE> 
	
</CFSWITCH> 

Designing for Fusebox

One way to design a Fusebox application is to write down the elements of the program on 4 x 6 index cards. These "Fusecards" can then be shuffled to design the architecture. The follow elements can be put on a Fusecard:

This system has been written about extensively by Hal Helms from TeamAllaire. See his website (http://www.teamallaire.com/hal) for more information about fusecards and how they can help you organize your site. Specifically, check out the Fusebox Primer at http://www.teamallaire.com/hal/articles/Fusebox1.htm (the section titled "Making Fuse-Responsibilities-Attributes Cards").

Other CF Programming Tips

We recommend that you always use a single "number/integer" datatype for your primary and foreign key fields when creating a new table within your database. This allows for the most integration with other database systems. You should specifically avoid using autonumber fields because many databases do not have this datatype. Don't forget that without the use of autonumber, you will need to manually increment your primary key. (The CF_MAX_ID tag from the Fusebox.org tag gallery makes this simple.)

We also strongly recommend that when maintaining the primary key manually, you turn on unique index for the field in question. This helps maintain referential integrity of the database by preventing contention between two people who happen to update the database simultaneously. In case a conflict does occur, use the CFTRY tags around your INSERT statements with a CFCATCH that retries the query. This way, you can be certain that the update will execute properly.

RULES ARE MADE TO BE BROKEN

The Fusebox standard is meant more as a series of guidelines. There is plenty of room built into the standard to allow for individual programmers' styles. Also, the standard is not perfect. Occasionally you may run across a site that will need to improvise on the Fusebox techniques. In this case, the recommendation is to try to stay as close as possible to the standard styles specified.

Keep your eyes open for more Fusebox articles on Fusion Authority, and for further news about the upcoming Fusebox book.

[Top]

QuickTip: Using Name (Label) Links with CFLOCATION

by Douglas Smith of TeraTech, Inc.

If you use a name label in CFLOCATION you must double up the #:

<CFLOCATION  url="index.cfm?##mylabel">

The main problem comes when you use URL variable in combination with labels, since it will corrupt the last URL variable in the string.

In the following example,

<CFLOCATION  url="index.cfm?fuseaction=main##mylabel">

FuseAction will evaluate to the following undesired value:

URL.FuseAction = main#mylabel

The way around this is to set a dummy URL variable that you don't use in your ColdFusion code, like the following:

<CFLOCATION  url="index.cfm?fuseaction=main&temp=1##mylabel">

Some HTML Basics: If You Don't Know About Labels

If you don't know, you can jump down to a specified location in a long HTML page by setting labels, and linking to them. The syntax is a little different from regular links.

Define a location/label on a long HTML page like this:

<a name="mylabel">text goes here</a>

and then link to the label from the same page, as in:

<a href="#mylabel">

or from a different page, as in:

<a href="http://mydomain.com/mypage.cfm#mylabel">

Here the # symbol does NOT indicate a CF variable, and is part of the HTML specifications.

[Top]

Locking in ColdFusion

This is the one to read. Throw out the ColdFusion documentation on CFLOCK and get ready to rewrite your code. CFLOCK and locking issues have been a mystery to the community for a long time. This article by Allaire's Product Evangelist Ben Forta tells you what locking is and what it does.

Locking in ColdFusion

[Top]

Test Your Knowledge

1.Name all the CFLOOP types and what they do.
2.Name all the Loop types in CFSCRIPT and what they do.
3.Can you loop over a query in CFSCRIPT and if so, how do you do it?

Last week's questions

1. Name 3 ways of getting information from a database.
CFQUERY will access a DB with a direct SQL statment or a stored procedure.
CFSTOREDPROC will access a stored procedure.
CFOBJECT will allow access to the ADODB object used by MS to access a DB.
CreateObject() function works exactly like CFOBJECT.
 
2. Name 4 ways of using custom Java with ColdFusion.
Custom Java extensions can be accessed by using Java CFX tags.
Java classes can be accessed by CFOBJECT and CreateObject().
Enterprise Java Beans can be accessed by CFOBJECT and CreateObject().
Servlets can be accessed by CFSERVLET (or CFHTTP).
A Java Applet can be included into CFFORMs by using CFAPPLET.
 
3. Name all the tags that do comparisons of data.
The CFIF tag
The IIF() function
Using a CFLOOP over a condition
A CFSWITCH/CFCASE set can be included here as well

[Top]


Security

Bugs Afflict Microsoft, Netscape, Sun

This article gives new information about Microsoft's vulnerability, and identifies a security problem with Java (Sun's cross-platform programming language) and Netscape's implementation of it in the Netscape browser: The implementation allows an unsigned Java applet to read files off a computer and distribute them by acting as a Web server. These security issues were discovered by Dan Brumleve, a programmer who was credited with detecting a number of other flaws in Netscape.

Bugs afflict Microsoft, Netscape, Sun

[Top]

Microsoft Internet Explorer Scriptlet Rendering Vulnerability

By design, the Scriptlet Component of Microsoft Internet Explorer (the ActiveX control that invokes scriplets) is only supposed to render HTML files. However, it will render any file type, which means a malicious website operator may gain read access to known files on a remote system by injecting valid HTML code into a file that would be run at the privilege level of the Local Computer Zone. Here's more details and directions to the Microsoft patch.

Microsoft Internet Explorer Scriptlet Rendering Vulnerability (information and patch)

[Top]

Netscape Communicator URL Read Vulnerability

A flaw in Netscape Communicator's implementation of Java allows malicious applets to read any resource reachable via a URL from the local machine by using the netscape.net.URLConnection and netscape.net.URLInputSteam classes. This allows malicious applets to read local files as well as download data from hosts that would otherwise be protected by a firewall. Here's more information and a workaround.

Netscape Communicator URL Read Vulnerability

[Top]

Allaire Security Bulletin (ASB00-18)

Patch Available for JRun 3.0 EJB Property Disclosure Issue

A remotely accessible component of the JRun 3.0 EJB engine can allow unauthenticated access to portions of the server's configuration files. Although this issue technically affects only JRun's EJB users, Allaire strongly recommends that all JRun 3.0 administrators apply this patch.

Allaire Security Bulletin (ASB00-18): Patch Available for JRun 3.0 EJB Property Disclosure Issue

[Top]

Allaire Security Bulletin (ASB00-19)

Patch Available for JRun Trailing Character JSP Source Code Disclosure Issue

Under certain circumstances, the included JRun 3.0 http server may improperly handle trailing path-specifying characters and a deliberately malformed URL will return a JSP page's source code, instead of the interpreted result.

Allaire Security Bulletin (ASB00-19): Patch Available for JRun Trailing Character JSP Source Code Disclosure Issue

[Top]


Knowledge Base

ColdFusion Server 4.5.1 Installation and Configuration on Slackware Linux 7.0

Allaire has posted directions to get Coldfusion Application Server 4.5.1 up and running on a Slackware Linux system.

ColdFusion Server 4.5.1 Installation and Configuration on Slackware Linux 7.0

[Top]

ColdFusion Server 4.5.1 Installation and Configuration on SuSE Linux 6.4

Here's how to get ColdFusion Server 4.5.1 running on a SuSE 6.4 Linux system.

ColdFusion Server 4.5.1 Installation and Configuration on SuSE Linux 6.4

[Top]


Stock

The Wall Street Transcript Interviews Jeremy Allaire

The Wall Street Transcript (TWST.com) spoke recently with Allaire CTO and cofounder, Jeremy Allaire, about the stock and its future for investors. Jeremy was asked: "Can you give us two or three ... reasons as to why a long-term investor should buy stock in Allaire today?"

Allaire's CTO Sees Long-Term Growth for Investors

QAWire Looks at Allaire

[Top]

Quote.com Makes Predictions of Near Term Growth for Allaire

Lycos Quote.com's David Solomon has predicted that "ALLR will be $75.00 by 9/15/2000 (ALLR was $35.06 on 8/8/2000)", despite recent selling pressure. Fellow columnist Fadi Gedeon has a more conservative prediction that "ALLR will be $50.00 by 10/27/2000 ... It's time for Allaire to run the web development show."

David Solomon Article on Allaire Corp. (Posted August 8)

Fadi Gedeon on Allaire Corp. (Posted August 8)

[Top]

Allaire Releases SEC-10Q for 2Q2000

Here is the URL to the formal document filed by Allaire to the SEC reporting the details of their financial position as of June 30, 2000.

ALLAIRE CORP (ALLR) Quarterly Report (SEC form 10-Q) (Yahoo!)

ALLAIRE CORP files 0630 qtr 10-Q. Reports $59.9 mil tot rev (Internet Financial Network News Alert)

[Top]

Allaire Files S- 8 Employee Plan with SEC

Here is the URL to the formal document filed by Allaire to the SEC reporting the stock to be registered for its employees' Stock Incentive Plan.

Allaire Corp. Files for Employee Plan (Internet Financial Network News Alert)

[Top]

CSFB Reiterates Its _Buy_ Rating for Allaire Corp.

Princeton, New Jersey, Aug. 14 (Bloomberg Data) -- Allaire Corp. was reiterated ''buy'' by analyst Brent Thill at Credit Suisse First Boston.

Allaire Corp. Reiterated 'Buy' at CSFB (CNet Investor Report)

[Top]

Weekly Numbers

DateOpenHighLowCloseVolume
11-Aug-0029.87529.937527.2528.1251,098,100
10-Aug-0032.062532.2529.5029.6875686,100
9-Aug-0035.062538.2530.37532.06251,602,100
8-Aug-0032.343835.12532.312534.251,051,000
7-Aug-0032.437533.37531.187532.375676,200

[Top]

All articles are for informational purposes only and do not constitute a suggestion to buy, sell, or in any way trade in any stock or securities.



This is an opt-in magazine. To join, leave or change subscription mode, please visit the signup page. All content of this magazine is copyright Fusion Authority, Inc. It may not be reproduced without permission.