API data not shown in IE and Firefox

I have an xml API that renders correctly in google chrome but in IE and Firefox, the data is not displayed. Are there any tweaks to make it work in IE and Firefox. if so please provide relevant script or code. Thanks in advance
if (window.XMLHttpRequest) {
//Firefox, Opera, IE7, and other browsers will use the native object
var xmlhttp = new XMLHttpRequest();
} else {
//IE 5 and 6 will use the ActiveX control
var xmlhttp = new ActiveXObject(“Microsoft.XMLHTTP”);

xmlhttp.open(“GET”,“url link”,false);

var x=xmlhttp.getElementsByTagName(“offers”);
for (i=0;i<x.length;i++)

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.