View Full Version : IE Issues.

12-13-2008, 02:48 AM
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.

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;
function getHTTPObject() {
var xmlhttp;

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.....)

12-13-2008, 04:03 AM
"It doesn't work" really does not tell us what the issue is.

Have you debugged with alerts to see where it is stopping. Have you used a proxy such as Fiddler to see if the call makes it out and back. DO you get error message?