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 Nylon Technology Christmas Party (Dec. 2008) with: Simon Free

Eric Hynds

Member since Dec 11, 2008

Recent Blog Comments By Eric Hynds

  • Using jQuery's Pipe() Method To Change Deferred Resolution

    Posted on Nov 1, 2011 at 11:20 AM

    Hi Mike, jQuery's AJAX methods actually return a jqXHR object, which includes promise (but not deferred) methods, therefore making it observable but not mutable. All sorts of weird stuff would happen if people were able to resolve/reject their jqXHR objects o_O - Eric... read more »

  • Using jQuery's Pipe() Method To Change Deferred Resolution

    Posted on Sep 9, 2011 at 6:07 PM

    Hey Ben, The only time I've used pipe() is to transform a JSON response while caching the promise at the same time. In this particular use case, I had an array of blog posts coming back from a 3rd party server and wanted to add a "summary" property to each blog post. The summary represent... read more »

  • Using Deferred Objects As An Asynchronous Script Loader In jQuery 1.5

    Posted on Feb 12, 2011 at 2:58 PM

    Hey Ben, I noticed it's possible to return a promise with the $.Deferred(fn) signature simply by chaining a .promise() call after creating a deferred. I think this was just an oversight by Julian when he posted that example on my blog. Applying this to your example, you could inste... read more »

  • Experimenting With Multiple Class Inheritance In Javascript

    Posted on Oct 22, 2010 at 10:41 AM

    Rather, the scope of them is augmented to the current instance of Ben.... read more »

  • Experimenting With Multiple Class Inheritance In Javascript

    Posted on Oct 22, 2010 at 10:38 AM

    Ben, Yep, I got it. After playing around for a bit it looks like the Person and Monkey classes are being instantiated - that is, populated with values - but are not (and need not be) initialized, because the scope of them is augmented to the current instance of Person. My knowledge is now +1!... read more »

  • Experimenting With Multiple Class Inheritance In Javascript

    Posted on Oct 22, 2010 at 10:07 AM

    Hey Ben, I'm experimenting with your code trying to wrap my head around the concepts. It's working great, but I don't understand how, in the Ben "class", you're calling the Person and Monkey constructors without creating new instances of them. Assume a scenario where the Ben object take... read more »

  • Your jQuery Selector Context Can Be A jQuery Object

    Posted on Mar 15, 2010 at 3:24 PM

    My feeling is that using a jQuery object as the context argument only hinders readability, and the performance will be slightly worse (however negligible) because of that extra internal conversion. I sometimes see $("expr", cachedjQueryObject) being interpreted as $("expr").andSelf(), rather than $... read more »

  • Using jQuery With Custom XHTML Attributes And Namespaces To Store Data

    Posted on Jan 9, 2009 at 11:44 AM

    Yeah, that's an issue with my JSON approach. I'm not very familiar with security issues around JavaScript or best practices, but to convert JSON to an object I use eval(), and I've always been taught evaluating in any language is a huge no-no and presents a security risk.... read more »

  • Using jQuery With Custom XHTML Attributes And Namespaces To Store Data

    Posted on Jan 9, 2009 at 10:31 AM

    I've found what works best for me is to store any custom variables in the name attribute in JSON format. I don't know if this is a good way to do it, but it's pretty darn customizable, scalable, and consistent. for example, I use the dialog UI fairly liberally in most apps I make. So i'll bind th... read more »

  • Turning On Multiple Statements In ColdFusion 8 MySQL 4/5 Datasource

    Posted on May 7, 2008 at 7:30 PM

    So this means multiple queries can be run in one cfquery, delimited by (I assume) a semicolin?... read more »