Topic
2 replies Latest Post - ‏2014-09-20T11:36:51Z by jitupkp
nicoboy
nicoboy
1 Post
ACCEPTED ANSWER

Pinned topic XMLHttpRequests request with IE8 doesnt work for me

‏2012-01-10T04:02:02Z |
The XMLHttpRequests works great while testing with Chrome And Firefox, however with IE 8 nothing happens and no errors show either. Very confused. Any suggestions? Thanks

function gettitle(title){

var str = (title.optionshttp://title.selectedIndex.text);
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("title").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","gettitle.php?q="+str,true);

xmlhttp.send();

return;
}
Updated on 2012-01-16T13:50:57Z at 2012-01-16T13:50:57Z by SystemAdmin