Skip to main content

Bug Tracker

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

Attachments (0)
Change History (2)

Changed June 05, 2013 01:20PM UTC by dmethvin comment:1

This is a great question for StackOverflow. There's not even any jQuery in it!

Changed June 05, 2013 01:21PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed