i am trying to load a html page in div.. its working fine in local machine, but when i upload to server its working fine in IE7 , but its not working in IE6 what would be problem.. below given is the script i am using...
Please help me in solving the issue.. i Need to deliver the product today help me to solve the issue.. thanks in advance.. ravimmrk@gmail.com
Code:function loadXmlHttp(url, id) { var f = this; f.xmlHttp = null; if (window.XMLHttpRequest&&!f.ie||/^http/.test(window.location.href)) f.xmlHttp = new XMLHttpRequest(); // Firefox, Opera 8.0+, Safari, others, IE 7+ when live - this is the standard method else if (/(object)|(function)/.test(typeof createRequest)) f.xmlHttp = createRequest(); // ICEBrowser, perhaps others else { f.xmlHttp = null; } if(f.xmlHttp != null){ f.el = document.getElementById(id); f.xmlHttp.open("GET",url,true); f.xmlHttp.onreadystatechange = function(){f.stateChanged();}; f.xmlHttp.send(null); } else alert('Your browser does not support AJAX!'); // substitute your desired request object unsupported code here } loadXmlHttp.prototype.stateChanged=function () { if (this.xmlHttp.readyState == 4 && (this.xmlHttp.status == 200 || !/^http/.test(window.location.href))) this.el.innerHTML = this.xmlHttp.responseText; } function loadpage (url, id){ new loadXmlHttp(url, id) }



Reply With Quote



Bookmarks