Skip to main content
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: The jQuery Community
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: The jQuery Community ( @jquery )

Edward Barnard

Member since Jan 26, 2010

Recent Blog Comments By Edward Barnard

  • Using Double Not-Operator (!!) For Boolean Type Casting

    Posted on Jan 27, 2010 at 3:08 PM

    @Ben, I found your excellent blog by searching for a way to trap jquery json-ajax errors. You gave me what I need; I can provide an error handler to $.ajax. Thank you! You make a good point about true/false/null as the success/failure value being a bit fishy. Remember that both PHP and Javascript ... read more »

  • Using Double Not-Operator (!!) For Boolean Type Casting

    Posted on Jan 26, 2010 at 12:04 PM

    A reason for using !== and === in javascript (and php) is when you are explicitly testing for a boolean value. When you truly want to know if it is TRUE or FALSE, you can get "fooled" by other non-boolean values getting typecast to the boolean value. For example, you are dealing with a function tha... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel