Hi,
I'm having a problem with the script in Internet explorer.
I included in my page with <?php include
();
?>
But it shows only in Internet Explorer the following message:
function createXMLHttpRequest(){ if (window.ActiveXObject){ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }else if (window.XMLHttpRequest){ xmlHttp = new XMLHttpRequest(); } } function senddata(){ createXMLHttpRequest(); xmlHttp.onreadystatechange = handleStateChange; xmlHttp.open("POST", "?", true); xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); var username = escape(document.getElementById('name').value); var email = escape(document.getElementById('email').value); var message = escape(document.getElementById('message').value); var id = escape(''); xmlHttp.send("ajax=true&id="+id+"&name="+username+"&email="+email+"&message="+message); } function handleStateChange() { if(xmlHttp.readyState == 4 && xmlHttp.status == 200) { var data; data = xmlHttp.responseText; data = data.split('####@@@**split**@@@###'); alert(data[1]); document.getElementById('allbody').innerHTML = data[2]; } } function submitcomment(useajax){ if(useajax == 'yes'){ senddata(); return false; }else{ return true; } }
What could it be?