I think the problem I have is with the javascript I have. My site works terrific in FF and chrome but stops dead with IE7. Problem for me is it
has to work in IE.
Code:
var url = "insertIE.php?id="; // The server-side script
function handleHttpResponse() {
if (http.readyState == 4) {
if(http.status==200) {
var results=http.responseText;
document.getElementById('poll').innerHTML = results;
}
}
}
function requestCustomerInfo() {
var sId = document.getElementById("txtCustomerId").value;
http.open("GET", url + escape(sId), true);
http.onreadystatechange = handleHttpResponse;
http.send(null);
}
function getHTTPObject() {
var xmlhttp;
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}
else if (window.ActiveXObject){
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (!xmlhttp){
xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
}
}
return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object
There's probably a million and one reasons why it doesn't work but I cannot figure it out. There is only so much left hair that I can pull out before I'm completely bald.
Anybody care to hazard a guess as to why it doesn't work with IE. (Please don't say "Don't use IE!", if I had a pound for every time.....)