|
Post by seowebtrick on Jul 20, 2011 23:44:27 GMT -5
I used this code to load xml and html file, please give me the right code because this is not working.. giving an error.. function ajaxLoader(url,id) { if (document.getElementById) { var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.HTTP") : } if (x) { x.onreadystatechange = function() { if (x.readyState == 4 && x.status == 200) { el = document.getElementById(id); el.innerHTML = x.responseText; } } x.open("GET", url, true); x.send(null); } } Web designer india, website designer india, web developer india, website developer india
|
|