ColdFusion Web Log Entries

Showing 1 - 15 of 1264   < Prev | Next >

Exploring ColdFusion Component Runtime Class Properties And Serialization

Posted: March 18, 2010 at 10:34 AM by Ben Nadel

Tags: ColdFusion

Yesterday, I came across an interesting post by John Whish on getting an entity memento in ColdFusion . As suggested by Sam Farmer , John was using SerializeJSON() and DeserializeJSON() to serialize a ColdFusion component into a JSON string and then reserializing it back into a plain old ColdFusion struct. Typically, serialization wouldn't seem ... read more »

Comments (5)  |  Post Comment  |  Ask Ben  |  Permalink



Ask Ben: Blocking WSDL Access In A ColdFusion Application

Posted: March 17, 2010 at 8:56 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

Is there any way to hide the WSDL file generated from a CFC from being viewed on a browser? Evidently .NET allows you to modify the web.config to make this happen; was looking for an equivalent in CF. Thanks much. First off, I have to say that I have no idea why you would want to do this, and I have to say I'm very curious. Perhaps you are trying... read more »

Comments (10)  |  Post Comment  |  Ask Ben  |  Permalink


Managing ColdFusion Sessions In A ColdFusion Builder Extension

Posted: March 16, 2010 at 10:33 AM by Ben Nadel

Tags: ColdFusion

There's been a lot of confusion in my mind as to how exactly ColdFusion session management works in a ColdFusion Builder Extension; sometimes it appears to work and sometimes it doesn't. I've been told by some people that I should rely on the Application scope for persistence. But, at the same time, I've seen with my own eyes that it does work occ... read more »

Comments (19)  |  Post Comment  |  Ask Ben  |  Permalink



Using Base64 Canvas Data In jQuery To Create ColdFusion Images

Posted: March 10, 2010 at 9:49 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

Last week, I explored the HTML Canvas element for the first time. In that exploration, I created a "finger painting" demo for the iPhone that would post drawing commands to the server where the image would be re-created as a PNG in ColdFusion. That was a nice approach because it gave me some flexibility in how the ColdFusion image was created (u... read more »

Comments (11)  |  Post Comment  |  Ask Ben  |  Permalink


URL Rewriting And ColdFusion's WriteToBrowser Image Functionality (CFFileServlet)

Posted: March 5, 2010 at 9:38 AM by Ben Nadel

Tags: ColdFusion

Yesterday, as I was experimenting with drawing on an HTML canvas element with jQuery , I was using ColdFusion to render temporary images to the browser. Specifically, I was using the CFImage tag's "WriteToBrowser" action to create a temporary PNG file to be served up by ColdFusion's CFFileServlet. This action creates a image file with the given t... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink


Drawing On The iPhone Canvas With jQuery And ColdFusion

Posted: March 5, 2010 at 8:44 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

The HTML Canvas element is something that I've known about for a long time but never actually looked at until yesterday. The Canvas element is just what it sounds like - a surface on which we can programmatically render graphics and shapes. After seeing some really cool canvas-based demos floating around on Twitter, I decided that it was finally t... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink


Using A State Machine To Parse Tokenized Data In ColdFusion

Posted: March 1, 2010 at 10:16 AM by Ben Nadel

Tags: ColdFusion

I have always been fascinated by the concept of parsing. I know nothing about it, which is probably why it seems to mystical to me. I've taken stabs at the parsing game before, using various approaches to try and color-code my blog code samples. But, nothing has ever really seemed completely satisfactory. After reading Ray Camden's blog post on t... read more »

Comments (10)  |  Post Comment  |  Ask Ben  |  Permalink


Be Careful When Including Images In jQuery Auto-Suggest

Posted: February 26, 2010 at 10:20 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

Yesterday at work, we ran into a very interesting problem involving a jQuery auto-suggest feature on one of our client sites. We had implemented auto-suggest on this particular site several times before and it had always proved to be very zippy and responsive. This time, however, the "suggest" page requests were taking 5, 6, sometimes 8 seconds to... read more »

Comments (10)  |  Post Comment  |  Ask Ben  |  Permalink


Ask Ben: Replacing A String That Is Not Inside Of Another String

Posted: February 25, 2010 at 9:42 AM by Ben Nadel

Tags: Ask Ben, ColdFusion

I can't remember where it was exactly (maybe Twitter), but the other day, someone asked me a question about replacing a string that was not contained within another string. It was something like, "I want to replace all apostrophes in a string. But, I don't want to do that if they are inside HTML comments." While this might seem like a simple quest... read more »

Comments (9)  |  Post Comment  |  Ask Ben  |  Permalink


Using Appropriate Status Codes With Each API Response

Posted: February 24, 2010 at 10:11 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

For a long time, I have thought about API request failures as falling into just two distinct categories: failure to communicate (ie. the server was down) or bad data (ie. invalid parameters). Failures to communicate with the server were out of my hands; as such, there was nothing I could do with those from a server standpoint. Requests with bad da... read more »

Comments (26)  |  Post Comment  |  Ask Ben  |  Permalink


Executing A Recursive CFThread In ColdFusion 9

Posted: February 23, 2010 at 9:50 AM by Ben Nadel

Tags: ColdFusion

Earlier this morning, I explored the fact that ColdFusion CFThread tag bodies are executed as function calls . While I didn't see any practical value to knowing this (yet), it did present a few more opportunities for exploration. Any time there is a function, there is an opportunity to play with one of computer science's greatest achievements: re... read more »

Comments (4)  |  Post Comment  |  Ask Ben  |  Permalink


ColdFusion CFThread Tag Body Executes As A Function Call

Posted: February 23, 2010 at 8:44 AM by Ben Nadel

Tags: ColdFusion

A few years ago at CFUNITED, I was talking to Rupesh Kumar about the new CFThread features he built into ColdFusion 8. In the conversation (which may have been a presentation), Rupesh mentioned that the CFThread tag body actually executes as a function call. At the time, I didn't put much thought into that; but, with ColdFusion 9's new implicit ... read more »

Comments (2)  |  Post Comment  |  Ask Ben  |  Permalink


ColdFusion's Application.cfc Session Events Are Not Session-Specific

Posted: February 18, 2010 at 10:54 AM by Ben Nadel

Tags: ColdFusion

Lately, I've been talking a lot about ColdFusion session management. In particular, I've been exploring what works and what does not work in terms of explicitly ending a user's session . The ColdFusion application framework is incredibly dynamic and powerful, which is great; but, with its flexibility comes a need to really test the inherent beh... read more »

Comments (6)  |  Post Comment  |  Ask Ben  |  Permalink


Posting XML SOAP Requests With jQuery

Posted: February 16, 2010 at 10:10 AM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

In the jQuery 1.4 Reference Guide by Karl Swedberg and Jonathan Chaffer , it is explained that the processData and contentType properties of a jQuery ajax() request can be adjusted to allow for XML document posts. Typically, AJAX data is serialized into a query string; but, if you set the processData property to false, the data property will be p... read more »

Comments (4)  |  Post Comment  |  Ask Ben  |  Permalink


BenNadel.com Gets Its First Valentine!

Posted: February 14, 2010 at 1:20 PM by Ben Nadel

Tags: ColdFusion, Javascript / DHTML

Typically, on holidays like Valentine's Day, I like to make a fun graphic for my website. But today, someone beat me to it! This morning, I was very flattered and excited to wake up to the following email: To Ben, I just wanted to say how much I love your web site. The videos and tutorials you've posted about JQuery have been so helpful!! I have ... read more »

Comments (27)  |  Post Comment  |  Ask Ben  |  Permalink

Showing 1 - 15 of 1264   Pages: 1 2 3 4 5 6 7 8 9 10 » < Prev | Next >
Recent Blog Comments
Mar 20, 2010 at 12:07 PM
Drawing On The iPhone Canvas With jQuery And ColdFusion
Simply awesome. Saved my day. ... read »
Mar 20, 2010 at 9:00 AM
Building A Fixed-Position Bottom Menu Bar (ala FaceBook)
I would like to say thx for an easy way to create a bottom bar. I do have a ?. Is it possible to center the bar if i want to resize it to ex 85%. Regards Offenbach ... read »
Mar 19, 2010 at 7:26 PM
MySQL 3/4 - com.mysql.jdbc.Driver And allowMultiQueries=true
Thank you very much for this post. Adding allowMultiQueries="true" in context.xml didn't help until I added it to url as allowMultiQueries=true Good idea is to use prepared statements and it will he ... read »
Jim
Mar 19, 2010 at 4:49 PM
Nobody Puts Baby In The Corner!
Wow. This is like suddenly finding a support group for your secret shame. I'm not alone! I always liked this movie, even though it is extremely cheesy. I just wish Jennifer Grey hadn't gotten the ... read »
Mar 19, 2010 at 4:47 PM
Application.cfc OnRequest() Method Affects OnError() Arguments
@Jason and @Ben, I've been doing some CF9 refactoring on our systems and noticed an odd occurrence with onError as well. Found a way to work around my problem, but what I saw was... Background: Our ... read »
Jim
Mar 19, 2010 at 4:44 PM
Shoot 'Em Up Starring Clive Owen And Paul Giamatti
I actually enjoyed this movie quite a lot. It was different, certainly, but I think they were going for more of a Quentin Tarentino-"wow, that was weird"-vibe than an actual spoof. Once I realize ... read »
Mar 19, 2010 at 4:34 PM
An Intensive Exploration Of jQuery With Ben Nadel (Video Presentation)
Hey I guess the video is down. Is there anyway you can upload to youtube or vimeo or some other service? Greatly appreciated. ... read »
Mar 19, 2010 at 4:24 PM
ColdFusion CFPOP - My First Look
@Ben Thanks for the follow up! The root of the problem had to do with being able to trace bounced emails to specific records in a DB table. Let's say you run an email campaign and you get 1,000 bou ... read »