IE8 + jQuery + $.ajax

IE8 + jQuery + $.ajax

Hi there. I have a problem with .ajax function and IE8. Short brief: I use jQuery for ajax requests and have trouble with that in IE8 but in other browsers my code works fine. I can say more. Even IE8 works fine but after manual page refresh (f5, ctrl+r). When page loads first time and I click on ajax item I`ve got error "Object expected" or something like that. 
Now I ask for help. I spent about 3 days on this trouble. Thanks.
My sample code:
  1. <h1>IE Ajax Test</h1>
  2. <a href='javascript:void(0);' id='ajax'>do ajax</a><br/>
  3. <div id='res'></div>
  4. <script type='text/javascript'>
  5. $(document).ready(function(){
  6. if($.browser.msie) alert("IE ver. " + $.browser.version);
  7. $('#ajax').click(function(){
  8. doAjax();
  9. });
  10. });
  11. function doAjax() {
  12. var post_data = "ajax=true";
  13. $.ajax({
  14.             type: 'POST',
  15.             data: post_data,
  16.             url: '<?php echo $this->createUrl('test/ajax');?>',
  17.             success: function(responce) {
  18. $("#res").append(responce + "<br/>");
  19.             }
  20.         });
  21. }
  22. </script>