Script URL http://www.w3schools.com/xml/tryit.a...ttprequest_js1
Hello folks, I am really a newbie in the XML world, I want to load some info into a DIV, I was able to did it, however is only working fine in firefox, Internet Explorer 7 does not show the XML information. there is a conflict, the script is not from dynamic drive is from w3 schools, here is the link of my website: http://www.john-designs.com/portfolio2.html
and here is the XML:
I would appreciate any help guys!!!Code:var xmlhttp function loadXMLDoc(url,ID) { xmlhttp=null // code for Mozilla, etc. if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest() } // code for IE else if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") } if (xmlhttp!=null) { xmlhttp.onreadystatechange=state_Change xmlhttp.open("GET",url,true) xmlhttp.send(null) } else { alert("Your browser does not support XMLHTTP.") } } function state_Change() { // if xmlhttp shows "loaded" if (xmlhttp.readyState==4) { // if "OK" if (xmlhttp.status==200) { document.getElementById('portfolio_content').innerHTML=xmlhttp.responseText } else { alert("Problem retrieving data:" + xmlhttp.statusText) } } }



Reply With Quote
Bookmarks