title: Jquery load() failing
body: <p>I'm trying to get the dimensions of an image but getting e.g.</p>
  
  <pre><code>Error: Syntax error, unrecognized expression: http://ecx.images-amazon.com/images/I/31Xu1OBZxvL._SL500_AA300_.jpg
  </code></pre>
  
  <p>The code I'm using first checks to see if <code>image.display_height</code> variable is null or empty and if so then load the image and get dimensions. If that fails hide the parent.</p>
  
  <p>Here's what I'm trying:</p>
  
  <pre><code>if(!!image.display_height) {
  
      $(image.preview2).load(function(){
          var width =    $(this).width();
          var height =    $(this).height();
      }).error(function (){
          $(this).parent().hide();
      })
  
  }
  </code></pre>