Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at the NYC Tech Talk Meetup (Aug. 2010) with:

Stefan

Member since Dec 11, 2008

Recent Blog Comments By Stefan

  • AxisFault: ColdFusion Web Services And XML Data Types

    Posted on Jun 15, 2009 at 7:48 PM

    Yes. But what I meant is that the error you got was because you tried to do XMLParse on something that was turned into a xml object when you set the type to XML. An argument of type xml can be an xml string or a xml object. So rather than changing the argument type to string, I think it is better to... read more »

  • AxisFault: ColdFusion Web Services And XML Data Types

    Posted on Jun 15, 2009 at 3:00 PM

    IsXmlDoc() also returns false. But using your original code, with cfsavecontent and type="xml", it works if you skip the XMLParse(). If I send in a CFXML created object and use type="any", isXML returns true, if i use type="xml", isXML returns false. If I skip XMLParse, the XMLSearch works in all c... read more »

  • AxisFault: ColdFusion Web Services And XML Data Types

    Posted on Jun 15, 2009 at 1:43 PM

    Ah, that is true. But the data is still not considered being XML - <cfreturn isXML(ARGUMENTS.Data)> returns 'NO' in the cfc, but when tested before being sent in, it says 'YES'. Some strangeness there. (I put that in before the XmlSearch so I never actually got there)... read more »

  • AxisFault: ColdFusion Web Services And XML Data Types

    Posted on Jun 15, 2009 at 1:26 PM

    If I replace your cfsavecontent with this: <cfxml variable="strData"> <data> <value>Test</value> </data> </cfxml> I get the same error, and it is definitely a XML object being passed.... read more »

  • Contextual CSS Is Good When You Know Everything About Your Content

    Posted on Jun 3, 2009 at 12:37 PM

    @Jon, I do that a lot. I often define classes like .left{float:left} .border{} .noborder .clear .parent .bold and so so that I can do <div class="myMainClass left border"> so I can have variations on my base classes without writing a new class name. In some ways maybe it makes the css less ... read more »

  • Contextual CSS Is Good When You Know Everything About Your Content

    Posted on May 27, 2009 at 11:24 PM

    I do not see many that is using cfm files for css? I surely helps when you want variables :) I sometimes do a style.cfm like this: <cfset primaryColor = "blue"> <cfset stdBlockMargin = "4"> <cfheader name="content-type" value="text/css"> <cfheader name="expires" value="#GetHt... read more »

  • Is It Time For "Practical" Object Oriented Programming (OOP)?

    Posted on Mar 30, 2009 at 6:56 PM

    Sean Corfield wrote: "A story I like to relate is this: a few years back I was at CFUNITED and told an attendee that he shouldn't expect to "learn" OO in just a few weeks or even months. I told him "OO is hard". He became very agitated, assuming I was telling him he was too stupid to learn OO. The ... read more »

  • Note About CFLogin, Application Name, And ApplicationToken

    Posted on Mar 29, 2009 at 5:30 PM

    I would like to recommend everyone to use a valid variable name as application name. Use application.prettyName for the pretty name. Maybe all my "not a valid variable name" errors over the years can be traced to the transition from Application.cfm to .cfc (I often used name="myAppname_#version#" i... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 29, 2009 at 1:15 PM

    One should proof read before posting. I said "As I said, it will always bring up the loginform after 30 seconds." Actually, I had not written that in the post it seems, only in my my mind. So to clarify: -<cflogin> will always be processed after 30 seconds, bringing up the login form -After... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 29, 2009 at 1:08 PM

    Much to read here. I am working on a admin app that requres login, so I use a CFLOGIN the traditional way (copied straight from the docs) in the onRequestStart(). If I use loginstorage="session" I get a very random behaviour even in single frame use. It does not go inside <cflogin> if the se... read more »

  • What Chinese Food Has Taught Me About Life

    Posted on Mar 28, 2009 at 5:33 PM

    There is something disturbing in this story that you all seem to have overlooked. Where is the chicken that the guy who got Ben's chicken ordered? chicken1 = new ChickenBroccoli(); // ben chicken2 = new ChickenBroccoli(); // other guy otherGuy.pickup(chicken1); try ben.pickup(chicken1); catch if... read more »

  • ColdFusion SESSION Is Always Created Even If OnSessionStart() Fails

    Posted on Mar 19, 2009 at 11:13 PM

    I had that problem on a site that used frames. It used to run with a app.cfm but I changed it to a cfc and got those random errors after session timeout. It took me a while to realize that the actual frameset was a cfm page and only one of the pages that the frameset requested initiated the cflogin ... read more »

  • You Cannot Delete Application.cfc Methods In The Pseudo Constructor

    Posted on Mar 10, 2009 at 1:22 PM

    Still, CF should know it can not handle CFC's and simply ignore them, let them pass without being intercepted and destroyed.... read more »

  • ColdFusion Application.cfc Tutorial And Application.cfc Reference

    Posted on Feb 26, 2009 at 2:54 PM

    Ben, maybe it would be a good idea to put a comment in the onRequest method that it can not be used together with cfc calls? And/or maybe something like this in onRequestStart (commented out) for those who really want to have the onRequest in there: <cfif listLast(arguments.targetPage,'.') is '... read more »

  • You Cannot Delete Application.cfc Methods In The Pseudo Constructor

    Posted on Feb 26, 2009 at 2:24 PM

    Try this: a.cfc <cfcomponent output="false"> <cfdump var="#this#"> <cfset this = createObject("component","b")> <cfdump var="#this#"> <cffunction name="myA"> <cfreturn 'I am A'> </cffunction> <cffunction name="myAB"> <cfoutput&g... read more »

  • You Cannot Delete Application.cfc Methods In The Pseudo Constructor

    Posted on Feb 26, 2009 at 2:05 PM

    Oops, setting the onRequest to 'private' is basically the same as removing it. Any idea why that method breaks remote calls to cfc's?... read more »

  • You Cannot Delete Application.cfc Methods In The Pseudo Constructor

    Posted on Feb 26, 2009 at 1:20 PM

    Interesting discussion. I have been playing around with similar issues whan I discovered I could assign another component to a components THIS scope (this = createObject()) and found that I could actually run the methods of component B inside the component A after the assignement, while at the same ... read more »

  • Ask Ben: Parsing String Data Using Javascript's String Replace() Method

    Posted on Feb 15, 2009 at 1:33 AM

    One thing about javascript replace, not completely related to tis article but something I have seen people struggle with, is the missing 'All' attribute that we CF people are used to have. It is actually quite simple to emulate with regexp. If I for instance want to remove dashes from a UUID, I do:... read more »

  • JSON: Minor But VERY Important Detail Creating Syntax Error: Invalid Label

    Posted on Dec 30, 2006 at 7:59 AM

    Just want to add my "you saved some hours of my life" thank you :) would be interesting to know why the parenthesis are necessary though. But at least now I know that they are.... read more »