0 x 80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLFormElement.submit]

Habe ich eine Methode zum abrufen einiger Daten (lat,lon-Punkte) und öffnen Sie ein Fenster zum anzeigen.

function openMapWindow (data) {
    alert(data);

    var mapForm = document.createElement("form");
    mapForm.target = "Map";
    mapForm.method = "POST"; //or "post" if appropriate
    mapForm.action = "/map.php";

    var mapInput = document.createElement("input");
    mapInput.type = "text";
    mapInput.name = "addrs";
    mapInput.value = data;
    mapForm.appendChild(mapInput);

    document.body.appendChild(mapForm);

    window.open("", "Map", "status=0,title=0,height=600,width=800");

    mapForm.submit();

}

Daten variable wird gefüllt mit dem folgenden:

0 x 80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLFormElement.submit]

Aber ich bekomme den folgenden Bereich auf die Zeile:

mapInput.value = data;

FEHLER: uncaught exception:
[Exception... " - Komponente zurückgegeben
Fehler code: 0 x 80004005
(NS_ERROR_FAILURE)
[nsIDOMHTMLFormElement.submit]"
nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS
Rahmen :: http://www.xxx.xxx ::
openMapWindow :: Linie 244" data: no]

Line 0

InformationsquelleAutor php-b-grader | 2011-04-16

Schreibe einen Kommentar