This code works under Firefox , but it's not working under IE + it's giving a coding error , the error it's reported into the IE status bar, at the bottom of IE... <div class="ranks" name="ranks" id="ranks">Loading...</div> <script type="text/JavaScript"> function trimite(url, parametri, divname){ if (window.XMLHttpRequest) { Ajax = new XMLHttpRequest(); } else if (window.ActiveXObject) { if(!Ajax){Ajax = new ActiveXObject("Msxml2.XMLHTTP");} if(!Ajax){Ajax = new ActiveXObject("Microsoft.XMLHTTP");} } function schimbari(){ if(Ajax.readyState == 4){document.getElementById(divname).innerHTML=Ajax.responseText; } } Ajax.overrideMimeType('text/html'); Ajax.open('POST',url,true); Ajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded') Ajax.setRequestHeader("Content-length", parametri); Ajax.setRequestHeader("Connection", "close"); Ajax.send(parametri); Ajax.onreadystatechange = schimbari; } </script> <script type="text/JavaScript"> trimite('page.html','url=none','ranks'); </script> HTML:
What is the text of the error ? I've seen you're using 'url=none' for second parameter on function trimite, and that parameter is used for "Content-length" value. IMO that value should be a number.