Skip navigation
You are not logged in.
Advanced Search
Skip user information
ITzEmir
Trainee
Posts: 31
1
Monday, December 21st 2009, 2:58pm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
<form name="Order" action="http://de.selfhtml.org/cgi-bin/comments.pl" id="Shop"> <table class="center" border="1"> <thead> <tr> <th>Pos.</th> <th>Menge</th> <th>Produkt</th> <th>MwSt-Satz</th> <th>Einzelpreis [€]</th> <th>MwSt [€]</th> <th>Betrag [€]</th> </tr> </thead> <tbody id="Orderb"> <script type="text/javascript"> xmlDoc=loadXMLDoc("Bestellung.xml"); var x=xmlDoc.getElementsByTagName("Row"); for (i=0;i<x.length;i++) { createNewBestellPosByXML(x[i]); } </script> </tbody> <tfoot> <tr> <td colspan="8" align="right"> <input type="text" name="Gesamtbetrag" readonly="" size="10" id="Sum"> </td> </tr> </tfoot> </table> <input type="button" value="Hinzufügen" name="hinzufuegenBtn" onclick="createNewBestellPos()"> <input type="button" value="Löschen" name="loeschenBtn" onClick="remove()"> <input type="submit" value="Bestellen" name="bestellBtn"> <input type="reset" value="Reset" name="resetBtn"> </form>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
function loadXMLDoc(dname) { if (window.XMLHttpRequest) { xhttp=new XMLHttpRequest(); } else { xhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xhttp.open("GET",dname,false); xhttp.send(""); return xhttp.responseXML; } xmlDoc=loadXMLDoc("Bestellung.xml"); document.write("<table class='center' border='1'>"); var x = xmlDoc.getElementsByTagName("Row") for (i=0;i<x.length;i++) { document.write("<tr><td>"); document.write(x[i].getElementsByTagName("Position")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x[i].getElementsByTagName("Menge")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x[i].getElementsByTagName("Produkt")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x[i].getElementsByTagName("Einzelpreis")[0].childNodes[0].nodeValue); document.write("</td><td>"); document.write(x[i].getElementsByTagName("MwStSatz")[0].childNodes[0].nodeValue); document.write("</td></tr>"); } document.write("</table>");
2
Tuesday, December 22nd 2009, 3:18pm
Deadman44
Professional
Posts: 415
3
Wednesday, December 23rd 2009, 10:27am
Remember me?