title: IE8: Object Doesn't Support This Property or Method (Line 1 Char 1)
body: <p>I have a simple jquery code that work's fine, but not in IE8.</p>
  
  <p>I have a button with <code>onclick="unlock();"</code>.
  The <code>unlock()</code> function is in external file named <code>js/unlock.js</code>.</p>
  
  <p>In the IE8 debugger tool it marks all of the function and write this error:</p>
  
  <pre><code>Object Doesn't Support This Property or Method (Line 1 Char 1)
  </code></pre>
  
  <p>The website is not writen in English, but please check this out. The <code>unlock</code> button looks like this: <a href="https://i.stack.imgur.com/78ivL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/78ivL.png" alt="enter image description here"></a><br>
  <sub>(source: <a href="http://gyazo.com/4135d0e39d2966938cd7154943ad900c.png" rel="nofollow noreferrer">gyazo.com</a>)</sub>  </p>
  
  <p>Link to the website: <a href="http://www.nitrobit.net/view/RDIWVmLAJ" rel="nofollow noreferrer">http://www.nitrobit.net/view/RDIWVmLAJ</a>
  BTW: You need to write something in the input next to the button.</p>
  
  <p>What is wrong?</p>
  
  <p>The JS code: (unlock.js):</p>
  
  <pre><code>unlock = function() {
      var password = $("input[name='password']").val();
      if($.trim(password).length != 0) {
          locked_div = $("#locked_div").html();
          $.ajax({
              url: 'ajax/unlock.php',
              type: 'post',
              data: { password: password, file: $("input[name='fileId']").val(), keep: ($("input[name='keep']").is(':checked')) ? 'true' : 'false' },
              beforeSend: function() {
                  $("#locked_div").html('&lt;img src="img/ajax-loader.gif" alt="loading" /&gt;');
              },
              success: function(data) {
                  if(data.indexOf(0) == 0) {
                      data = data.slice(1);
                      $("#locked_div").html(locked_div);
                      $("#error").html(data);
                  } else {
                      $("#locked_content").slideUp(); 
                      $("#prem_message").slideUp(function() {
                          $("#dl_section").html(data);
                          $("#download").fadeIn('slow');
                      });
                  }
              }
          });
      }
  }
  </code></pre>
  
  <p>Thanks, and sorry for my English</p>