Recent Web Log Entries By Ben Nadel

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 (6)  |  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



Your jQuery Selector Context Can Be A jQuery Object

Posted: March 15, 2010 at 9:04 AM by Ben Nadel

Tags: Javascript / DHTML

This is just a quick post to clear up any confusion over what kind of objects can be used as a context when performing a jQuery selector execution. Sometimes, when reviewing jQuery code, I see people make data type conversions in their context usage: $( "div", myStuff[ 0 ] ) Here, you can see that the programmer is converting their "myStuff"... read more »

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


FLEX On jQuery: Extending The jQuery Event Object

Posted: March 14, 2010 at 12:08 PM by Ben Nadel

Tags: Javascript / DHTML

Last week in my FLEX On jQuery series with Joe Rinehart , I explored the idea of creating non-coupled UI elements that communicate indirectly through the use of event listeners and modifiable event behaviors . In that experiment, I used the core jQuery Event object with custom event types to model custom events; but, I get the feeling from sever... read more »

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


FLEX On jQuery: Decouple Components With Event Listeners

Posted: March 12, 2010 at 9:26 AM by Ben Nadel

Tags: Javascript / DHTML

In my continuing effort to explore Adobe FLEX as a means to find applicable jQuery / Javascript "best practices", I had a short exchange with Joe Rinehart the other day on FaceBook. It was a very brief conversation, so I didn't have much to go on; but basically, it came down to keeping components loosely coupled through the means of some interme... read more »

Comments (4)  |  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


Translating Global jQuery Event Coordinates To A Local Context

Posted: March 9, 2010 at 9:31 AM by Ben Nadel

Tags: Javascript / DHTML

When you use jQuery to capture mouse events (mousedown, mouseup, click, etc.), the jQuery Event object contains the X and Y coordinates of the mouse position at the time the event was triggered. These coordinates, while somewhat different in each browser, have been standardized by jQuery to be available in the pageX and pageY properties . No matt... read more »

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


The Boondock Saints: Back In The Theaters March 11th

Posted: March 8, 2010 at 10:11 AM by Ben Nadel

Tags: Movies

In honor of its ten-year anniversary, The Boondock Saints (the original) is going to be back in the movie theaters for one night on March 11th (this Thursday) as a Fathom Events screening. I love this movie and I never got the chance to see it on the big screen. The first time I ever saw it, I think I purchased it on a whim for $1.99 in a Virgin R... read more »

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


jQuery Mouse Events: PageX/Y vs. ClientX/Y

Posted: March 8, 2010 at 9:19 AM by Ben Nadel

Tags: Javascript / DHTML

When I first starting playing with jQuery events, a lot of what I learned about the jQuery Event object was through trial and error. While I could be remembering incorrectly, I used to find that the jQuery documentation was good at describing the event handlers, but not so good at describing the event object; as such, while I knew that the jQuery ... read more »

Comments (7)  |  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


FLEX On jQuery: Turning HTML Links Into Standard UI Elements

Posted: March 3, 2010 at 8:39 PM by Ben Nadel

Tags: Javascript / DHTML

In my first "FLEX on jQuery" blog post yesterday , I talked with Javier Julio about some of the similarities and differences between FLEX applications and rich jQuery applications. As we talked, one of the patterns that I began to see was the significant difference in the inherent power of "link" elements in the two different technologies. I sa... read more »

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


FLEX On jQuery: The Relative Power Of Link Elements

Posted: March 3, 2010 at 10:17 AM by Ben Nadel

Tags: Javascript / DHTML

Mentally, I am still very much in the web application world of the traditional client-server request-response life cycle. I think in terms of page requests and view rendering; and, as my ability to code complex jQuery applications increases, I fear that my understanding of client-side architecture "best practices" is not keeping up. After a lot of... read more »

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


Experimenting With jQuery's Queue() And Dequeue() Methods

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

Tags: Javascript / DHTML

jQuery comes with a number of built-in animation methods like slideUp() and slideDown(). While these appear to be packaged in their own methods, many of them are powered internally by the animate() method. And while the animate() method handles many of the effects, a string of sequential animations is controlled internally by jQuery's queuing mech... read more »

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

March 2010 Entries »

Previously Posted

Using A State Machine To Parse Tokenized Data In ColdFusion - Posted Mar 1, 2010
Be Careful When Including Images In jQuery Auto-Suggest - Posted Feb 26, 2010
Ask Ben: Replacing A String That Is Not Inside Of Another String - Posted Feb 25, 2010
Using Appropriate Status Codes With Each API Response - Posted Feb 24, 2010
Executing A Recursive CFThread In ColdFusion 9 - Posted Feb 23, 2010
ColdFusion CFThread Tag Body Executes As A Function Call - Posted Feb 23, 2010
Project HUGE: Hit A New Years Resolution - Deadlifts At 405lbs - Posted Feb 20, 2010
Using jQuery's Animate() Step Callback Function To Create Custom Animations - Posted Feb 19, 2010
ColdFusion's Application.cfc Session Events Are Not Session-Specific - Posted Feb 18, 2010
Traversal vs. Collection Filtering In jQuery - Posted Feb 17, 2010
Posting XML SOAP Requests With jQuery - Posted Feb 16, 2010
jQuery forEach() Experiment For Branch-Wise Implicit Iteration - Posted Feb 15, 2010
Selecting The Closest Parent On Multiple Nodes With The jQuery Plugin ClosestParents() - Posted Feb 15, 2010
jQuery 1.4 Reference Guide By Karl Swedberg And Jonathan Chaffer - Posted Feb 14, 2010
BenNadel.com Gets Its First Valentine! - Posted Feb 14, 2010
My DZone Interview With Dan Wilson: Creating Software Simulations Using Interface-Driven Architecture - Posted Feb 12, 2010
Explicitly Ending A ColdFusion Session - Posted Feb 12, 2010
Clearing The Session Scope Does Not End Your ColdFusion Session - Posted Feb 11, 2010
Making Sure Your ColdFusion Applications Are Uniquely Named - Posted Feb 9, 2010
Making Sure Scheduled Tasks Don't Overlap In ColdFusion - Posted Feb 9, 2010
How To Create GStrings In Javascript By Extending Core Data Types - Posted Feb 8, 2010
What Happens When A ColdFusion CFLock Timeout Is Exceeded Without Error? - Posted Feb 8, 2010
Programmatically Uploading Images To JING At ScreenCast.com Using ColdFusion - Posted Feb 5, 2010
Update: jQuery Photo Tagger Plugin For Flickr-Style Photo Tagging - Posted Feb 5, 2010
jQuery Photo Tagger Plugin For Flickr-Style Photo Tagging - Posted Feb 4, 2010
Wrapping The Window Object In A jQuery Wrapper - Posted Feb 2, 2010
Creating Flickr-Style Photo Tagging With jQuery - Posted Feb 2, 2010
Calling jQuery's Data() Method Without Arguments - Posted Feb 1, 2010
Is Simulating User-Input Events With jQuery Ever A Good Idea? - Posted Jan 30, 2010
Project HUGE: Deadlifts At 385lbs And Natural Hamstring Raises - Posted Jan 29, 2010
Converting An IP Address To An Integer Using MySQL (Thanks Julian Halliwell) - Posted Jan 29, 2010
Putting Your Geolocation iPhone Photos On A Google Map Using ColdFusion And jQuery - Posted Jan 28, 2010
Delaying ColdFusion Session Persistence Until User Logs In - Posted Jan 27, 2010
Converting IP Addresses To And From Integer Values With ColdFusion - Posted Jan 26, 2010
Script Tags, jQuery, And Html(), Text() And Contents() - Posted Jan 26, 2010
ColdFusion 9 CFScript Comments Handle Name-Spaces... And Just About Anything - Posted Jan 26, 2010
Using jQuery's SlideUp() and SlideDown() Methods With Bottom-Positioned Elements - Posted Jan 25, 2010
Java Matcher's QuoteReplacement() And Java 6 vs. Java 1.4.2 - Posted Jan 25, 2010
Project HUGE: Trying Barbell Front Box Squats For The First Time - Posted Jan 22, 2010
Creating An Image Zoom And Clip Effect With jQuery And ColdFusion - Posted Jan 22, 2010

Recent Blog Comments
Mar 22, 2010 at 7:43 AM
Terms Of Service / Privacy Policy Document Generator
Thankyou for this very helpful form. You've made my life much easier today. I'll have a look around your site... I'm sure there's some more good stuff here..Thanks Dave ... read »
Mar 22, 2010 at 7:21 AM
Encountered "(. Incorrect Select Statement, Expecting a 'FROM', But Encountered '(' Instead, A Select Statement Should Have a 'FROM' Construct.
I got this exception now. In case you're using var-es local struct, CF gives you couple of "new" exceptions: Encountered "local. and Encountered "id. Incorrect Select List, Incorrect select colum ... read »
Mar 22, 2010 at 3:08 AM
Ask Ben: Selecting XML Attributes Given Other XML Attributes
Thanks for the response. I finally discovered that I was getting this error because I had cfsetting enablecfoutputonly="yes" in Application.cfc, and was neither setting it to false elsewhere nor brac ... read »
Mar 21, 2010 at 8:57 PM
The Bourne Ultimatum Starring Matt Damon And Julia Stiles
late to the party, but my observation is this: rewatch carefully for the platonic nature of the relationship between nicki and jason. she never flirts with him. he never comes on to her. they alway ... read »
Mar 21, 2010 at 7:40 PM
Is Simulating User-Input Events With jQuery Ever A Good Idea?
A couple of things. One you embed the initial state of of more-info in the CSS. IMHO, that behavior should be in jQuery: moreInfo.hide(); It shows that the behavior your toggling and closing is mor ... read »
Mar 21, 2010 at 3:59 PM
Exploring ColdFusion Component Runtime Class Properties And Serialization
@Elliott, according to Ben's experiment, serializeJSON() doesn't access the private data by default - it doesn't even access the getHair() method - so trying to clone a Girl.cfc via serializeJSON/des ... read »
Mar 21, 2010 at 3:49 PM
Ask Ben: Javascript String Replace Method
I'm confused a bit by what you are asking, but if had this sentence: The color, red, is in the style statement; style: red;. and wanted to remove all or change all of the commas, colons, and semi-c ... read »
Mar 21, 2010 at 3:13 PM
Ask Ben: Javascript String Replace Method
I am trying to make a java program to count the number of times that these punctuation marks occur in a body of text: , : ; . ! - ' " ? / \ I am using this piece to ferret out the commas: numcommas ... read »