Opened 10 years ago
Closed 10 years ago
#13991 closed bug (notabug)
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
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
This is a great question for StackOverflow. There's not even any jQuery in it!