Side navigation
#13991 closed bug (notabug)
Opened June 05, 2013 11:37AM UTC
Closed June 05, 2013 01:21PM UTC
Code not working in IE8
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello fellas - I need help, been on this for a whole day now.
My code runs on all browsers except for IE8.. Can anybody help me?
function getmodel(str)
{
var xmlhttp;
if (str=="")
{
document.getElementById("model").innerHTML="";
return;
}
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("model").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getmodel.asp?model="+str,true);
xmlhttp.send();
}
Regards
This is a great question for StackOverflow. There's not even any jQuery in it!