I have a simple jquery code that work's fine, but not in IE8.
I have a button with onclick="unlock();". The unlock() function is in external file named js/unlock.js.
In the IE8 debugger tool it marks all of the function and write this error:
Object Doesn't Support This Property or Method (Line 1 Char 1) The website is not writen in English, but please check this out. The unlock button looks like this: 
(source: gyazo.com)
Link to the website: http://www.nitrobit.net/view/RDIWVmLAJ BTW: You need to write something in the input next to the button.
What is wrong?
The JS code: (unlock.js):
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('<img src="img/ajax-loader.gif" alt="loading" />'); }, 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'); }); } } }); } } Thanks, and sorry for my English
unlockis defined. (If it's defined within a scoping function, for instance, then it's not a global and isn't available from anonclick="..."-style handler.)<base href="http://www.nitrobit.net/" />Object Doesn't Support This Property or Method (Line 1 Char 1)And there are no other errors.