With browsers being as generous as they are about whitespace, ColdFusion, like every other scripting language I have used, doesn’t seem to make much of an effort to keep it to a minimum. Typically, whitespace is not a concern since browsers handle it so well, however if you are trying to generate an XML document, it can be a big problem. That’s why we have tags like cfsilent, cfprocessingdirective, and cfsetting, and that’s why we have the ability to enable whitespace management in the ColdFusion administrator. However, CFMX for J2EE doesn’t seem to come with the whitespace management option, and sometimes no matter what combination of whitespace management tags I use, I simply cannot prevent the server from writing out a few carriage returns at the top of the document (which makes for invalid XML). I finally discovered the ultimate solution.
Continue reading…
April 29, 2003
Roger Benningfield of JournURL has created a nice component interface for using XML-RPC with ColdFusion MX. I haven’t tried it yet, but I’m about to. I will let you know what I find. You can find information on his project here:
http://journurl.com/support/users/admin/index.cfm?mode=article&entry=362
Thanks for this contribution to the ColdFusion community, Roger. This has the potential to save a lot of people a lot of time.
April 28, 2003
Ben and Jerry’s Ice Cream recently “went dynamic” by upgrading their
static 600 HTML page site to a full database driven CF MX, Flash MX and
DW MX powered site. Check it out:
http://www.benandjerrys.com
But even more important is the fact that tomorrow (4/29) is free cone day, so
go get yourself some free ice-cream at any Ben and Jerry’s between noon and 8PM!
Very cool. Check it out:
- 10, 15 and 30 GB
- New button and menu system
- A dock for recharging, synching, and line out
- Three games: Solitaire, Brick and Parachute
- Text reader (one step closer to a PDA)
- Sleep timer and alarm for falling asleep and waking up
- Slimmer and lighter
- New version of iTunes that lets you buy and download music
Details here:
http://www.apple.com/ipod/
I saw some confusion about this matter on a list this morning, so I thought I’d clarify things here:
Continue reading…
April 26, 2003
Remember that the order of pseudo-class definitions on your CSS file matters! I came across someone today who claimed that the links on his page were behaving inconsistently. Sometimes they would follow the a:hover definition, and sometimes they wouldn’t. To make matters worse, although the behavior was inconsistent on all browsers he tested with, the inconsistencies were not consistent from one browser to another! The problem was that his rules were out of order. He had something like this…
A:link { color: red }
A:hover { color: yellow }
A:visited { color: blue }
… when it should have been this …
A:link { color: red }
A:visited { color: blue }
A:hover { color: yellow }
Links that he had visited were turning blue rather than yellow when he hovered over them. He said it was enough to make him want to go back to JavaScript image roll-overs! Believe me, it’s easier to fix your style sheet. For more information, see:
http://www.w3.org/TR/CSS2/selector.html#dynamic-pseudo-classes
April 25, 2003
I have a few questions about the cfreport tag and the use of Crystal Reports in general.
- How many of you out there use the cfreport tag to generate Crystal Reports?
- What version of reports do you generate?
- What do you use the reports for?
- How important is the cfreport tag to you?
Feel free to answer here or email me directly.
April 24, 2003
Firefly refers to a set of components available on the new Flash MX Data Connection Kit. From the website:
The Data Connection Kit provides prebuilt connections to web services, XML data, databases, and application servers so you can easily access, save, and display data.
I saw a demo yesterday of how easy it is to create “data aware” components which hook together into rich, dynamic applications. Very impressive stuff. You can find out more here:
http://www.macromedia.com/devnet/mx/flash/articles/firefly_components.html