Hallo,
ich beschäftige mich gerade einwenig mit AJAX:
Bisher sende ich so an die Zieldatei:
http.open('POST', 'calc.php', true);
http.setRequestHeader('Content-Type',
'application/x-www-form-urlencoded');
http.send("1=" + document.getElementById('1').value);
//Line 26 mit Fehler: http.send("2=" + document.getElementById('2').value);
Allerdings würde ich jetzt gerne, mehrere Variablen senden. Mit einem zweiten http.send funktioniert es _nicht_.
Firefox sagt mir:
Fehler: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: calc.html :: submitForm :: line 26" data: no]
Wie kann ich also jetzt 2 Werte senden, bzw. am besten gleich ein alle Werte aus einem Formular?
Grüße
Steffen.