|
|||
Fehler bei HTTPRequest über POST
ich versteh den fehler nicht :/
Code:
JavaScript - ...contact.php Event thread: submit Error: Unhandled exception: [Object DOMException] code: 11 message: INVALID_STATE_ERR Backtrace: Line 49 of linked script ...ajax.js if (fmethod == "POST") Line 70 of linked script ...ajax.js result = AjaxRequest(url, method, params); Line 19 of inline#1 script in ...contact.php sendConForm(); Line 1 of script CheckConForm(); return false; At unknown location [statement source code not available] Code:
function AjaxRequest(furl, fmethod, fparams) { http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) http_request.overrideMimeType('text/xml'); } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request) { return false; } if(fmethod == "POST") { http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } http_request.open(fmethod, furl, true); http_request.send(fparams); http_request.onreadystatechange = checkstate; } if(fmethod == "POST") { http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); } zu liegen, aber was ist daran falsch? __edit: ich habs... das setRequestHeader muss HINTER das .open ....
__________________
Wer sich über Kritik ärgert, gibt zu, dass sie verdient war. Gaius Cornelius Tacitus (um 55 - nach 115), römischer Historiker und Politiker Geändert von psycho_dmr (12.04.2007 um 17:23 Uhr) |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Redesign für Steiner Cycling Team | pkipper | Site- und Layoutcheck | 11 | 09.02.2011 13:25 |
Fehler: character ";" not allowed in attribute specification list | Schaum | Javascript & Ajax | 2 | 20.01.2011 14:54 |
Fehler bzw. Warnungen für eine Lightbox | empfei | (X)HTML | 3 | 24.10.2009 15:27 |
PHP: ereg_replace verursacht fehler nach Umstellung auf UTF-8 | braindead | Serveradministration und serverseitige Scripte | 5 | 02.07.2007 11:28 |
Kleiner Fehler bei Opera und IE -> Bitte Hilfe! | ONeill | CSS | 10 | 11.08.2006 14:40 |