[Wylug-help] Firefox/Ie difference javascript/ajax

Gary Stainburn gary.stainburn at ringways.co.uk
Thu Aug 23 14:40:01 BST 2007


Hi folks.

I know I'm drifting O/T, so if anyone can suggest a better source of Help I'll 
try elsewhere..........but

Can anyone tell me while the following code doesn't work in IE, but does work 
Firefox?

document.getElementById("listdiv").innerHTML=xmlHttp.responseText;

The full function is here. The alert does show the HTML is there in both 
browsers, but it only appears in Firefox.

  AjaxRequest("/used_diary_ajax.html?search="+str,
     function(xmlHttp) {
       if(xmlHttp.readyState==4) {
         alert("ajax returned"+xmlHttp.responseText);
         document.getElementById("listdiv").innerHTML=xmlHttp.responseText;
        }
      }
    );

The HTML of the page has:

<div id="listdiv"></div>

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



More information about the Wylug-help mailing list