$.ajax working with Firefox, not IE

$.ajax working with Firefox, not IE

Hello,

I have a jQuery code to allow users to login using a lightbox (http://colorpowered.com/colorbox/) and immediately start downloading files, without being redirected or having the page reloaded. It's perfectly working in Firefox but Internet Explorer keeps showing the login box until I reload the page :(

  1. <? if (!$this->session->userdata('user_logged_in')): ?>
  2. <script type="text/javascript">
  3. $(document).ready(function() {
  4.     $('a[href^="/link/"]').click(function(event){
  5.         var status = $.ajax({
  6.             url: "/status",
  7.             async: false
  8.         }).responseText;
  9.         if (status != 'USER_LOGGED_IN')
  10.         {
  11.             $.fn.colorbox({href:"/login"});
  12.             event.preventDefault();
  13.         }
  14.     });
  15. });
  16. </script>
  17. <? endif ?>

Your help would be greatly appreciated.