TrudyD1474 Posted August 9, 2011 Share Posted August 9, 2011 I need to add "KEY" and "PASSWORD" parameters to the following code taken from w3CSCHOOLS XML to HTML.Where and how would I do that? <?xml version="1.0" encoding="UTF-8"?><html><body><script type="text/javascript">if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.open("POST","http://www.machinefinder.com/dealer_families/9398/machine_feed.xml",false);xmlhttp.send();xmlDoc=xmlhttp.responseXML; document.write("<table border='1'>");var x=xmlDoc.getElementsByTagName("machine");for (i=0;i<x.length;i++) { document.write("<tr><td>"); document.write(x[i].getElementsByTagName("id")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x[i].getElementsByTagName("model")[0].childNodes[0].nodeValue); document.write("</td></tr>"); }document.write("</table>");</script></body> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.