IE6-8 Bug by using following code

IE6-8 Bug by using following code

hi i use jquery to update my chat. therefore i use this code:


            function update() { $.get("/chat/chats/show", function(data) { $(".chatboxcontent").html(
            
            data); window.setTimeout(update, 1700); }); } //$("#chatbox_"+chatboxtitle+" .chatboxcontent").scrollTop($(
             "#chatbox_"+chatboxtitle+" .chatboxcontent")[0].  scrollHeight); $(document).ready(function(e){ update(); var clicked = $('<input type="button" value="Send"/>').click(  function(){ var value = $('textarea').val(); var textlength = value.length; if(textlength > 0 ) { $(this).parents("form:first").  ajaxSubmit({ success: function(responseText, responseCode) { } }); $('.txtarea').clearFields(); return false; }else{ alert('leer'); } }); $("body, input, textarea").keypress(function(  e){ if(e.which==13) { var value = $('textarea').val(); var textlength = value.length; if(textlength > 0 ) { $(this).parents("form:first").  ajaxSubmit({ success: function(responseText, responseCode) { } }); $('.txtarea').clearFields(); return false; }else{ alert('leer'); } } }); clicked.appendTo('form div.submit'); //alert($(".chatboxcontent").  scrollTop()); }); 
            

            the update() method i use doesn´t work well. at the begin it loads my content. after that now i wont to send anything to db and than the update() method have to be called to update() the chatboxarea where the content are. But somehow it doesnt work in IE6-8. can anyone tell me why... plz