Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: IE Issues.

  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Thanked 0 Times in 0 Posts

    IE Issues.

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

  2. #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Between DC and Baltimore In a Cave
    Thanked 94 Times in 88 Posts
    "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?

    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts