Using ColdFusion.navigate Instead Of Bindings

October 5th, 2007 · No Comments

A user pinged me during MAX (what’s wrong with you guys, didn’t I warn you about questions??!? ;) with a problem.

He wanted to use a CFDIV tag that bound to a form. The problem was - he didn’t want to actually do anything until the form was complete. He was using bindings, and everytime the form changed, the div reloaded, even though the form wasn’t complete. There are two simple solutions to this.

First off - one simple solution is to build the source file, and by source file I mean what your CFDIV is pointing to - build it such that it recognizes an incomplete form and simply doesn’t do anything. So consider this form:
[Read more →]

→ No CommentsTags: Uncategorized

Serving Up CFIMages Via Image Tags

September 14th, 2007 · No Comments

Todd Sharp recently pinged me about an interesting problem.

He was working with Images generated in ColdFusion 8 and was trying to use this imaga via the HTML IMG tag, like so:

<img src="foo.cfm">

The code in foo.cfm generated the graphic and he couldn’t quite figure out how to display it. One thing he tried was the WriteToBrowser action:

<cfimage action="writeToBrowser" ...>

This didn’t work - and if you view source on a file using this action you will see why. The WriteToBrowser action actually generates HTML that points to a ‘magic’ URL to serve the image.

He also tried cfcontent:
[Read more →]

→ No CommentsTags: Uncategorized

Running FxCop & The Quirks

August 17th, 2007 · No Comments

Earlier today I did a code maintenance session on BlogEngine.NET using the excellent FxCop tool.

It’s been a while since I have so there were quite a few things to correct in the code. I actually like spending time with FxCop and fixing the broken rules. There’s something very relaxing about it. Even though FxCop is excellent, it is not without its quirks.

Compound words should be cased correctly
[Read more →]

→ No CommentsTags: Uncategorized

Where Does The Mysterious Method Added To Your CFCs Come From?

August 10th, 2007 · No Comments

If you’ve been working with CFCs in ColdFusion 8, you may come across a mysterious method. Consider this screen shot from a CFC descriptor:
[Read more →]

→ No CommentsTags: Uncategorized

Improve Site Performance With YSlow

June 27th, 2007 · No Comments

If you haven’t already heard, Yahoo! has released YSlow for Firebug, a Firefox plugin that analyzes your site for ways to speed things up in terms of HTML, CSS and JavaScript.
[Read more →]

→ No CommentsTags: Uncategorized