title: Internet Explorer 9 in compatibility-mode shows error
body: <p>While testing my jQuery script in IE 9 it shows error in jquery-1.6.2.js --</p>
  
  <pre><code>SCRIPT5022: Exception thrown and not caught 
  jquery-1.6.2.js, line 548 character 3
  </code></pre>
  
  <p>My js file used to work with no problems in other browsers - firefox 3.6, 5.0, opera 11, chromium, chrome. I do not understand. Is there a bug in the jquery source or is there a bug in my js file ? How do I find it ? </p>
  
  <p>It hasen't been long since I started in this area so please I would really appreciate some ideas.</p>
  
  <p>Thank you in advance.</p>
  
  <p>[edited]
  I've added the complete code.
  I've learnt from :
   <a href="http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-jquery-image-cropping-plug-in-from-scratch-part-ii/" rel="nofollow">http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-jquery-image-cropping-plug-in-from-scratch-part-ii/</a></p>
  
  <p>I don't know which part to add. The whole code does not fit in stackoverflow's submit. says "body is limited to 3000 characters; you entered 42121 "</p>
  
  <p>[2nd edit]
  I have used 'error' in my ajax submit.</p>
  
  <pre><code>    //jquery ajax submit for resizing
      function submit(myform,e){
          $n.val($image.attr('src').replace(/^[^,]*\//,''));
  
          var mydata = myform.serialize();
          $.ajax({
              url: $myform.attr('action'),
              cache: false,
              type:$myform.attr('method'),
              data: mydata,
  
              success: function(response){
                  var img = $("&lt;img /&gt;").attr('src', 'images/'+response+'?'+ e.timeStamp) //&lt;-- img name here
                      .load(function() {
                         if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
                             alert('Incorrect image.');
  
                         } else {
                             $("#result").html(img); //&lt;-- put cropped img here.
  
                         }
                      });
  
  
                      },
              error: function(){ //&lt;-- error used here
                          $('#result').html("Err. Loading Image");
                      }
          });
      };
  </code></pre>