A user asked this about the cfajaxproxy tag:
Any way around CFAJAXProxy exposing all remote component functions to JavaScript? To elaborate, I have a component with x remote functions. A particular page call requires only one of these remote functions. I’d like CFAJAXproxy to expose only the required functions.
When I first read this - I was a bit confused. Why expose a method as remote if you didn’t want it - well - remote? Turns out he was using one CFC for his public facing site as well as his Admin. [Read more →]
Tags: Uncategorized
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 →]
Tags: Uncategorized
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 →]
Tags: Uncategorized
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 →]
Tags: Uncategorized
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 →]
Tags: Uncategorized