Code:
Fehler: "Junk" nach Dokument-Element Quelldatei: [url]http://localhost/aktenkonfigurator/home[/url] Zeile: 2, Spalte: 1 Quelltext: <p>[...]
das <h1>TITLE</h1> mag er anscheinend ... nur das <p> nicht
OffTopic:
peterchen weiß sicherlich eine lösung und ne mail hat er auch
//Edit
PHP-Code:
var http_request = false;
function ajax() {
http_request = false;
if (window.XMLHttpRequest) {
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) {
alert('Kann keine XMLHTTP-Instanz erzeugen');
return false;
}
}
function handleHttpState() {
if (http_request.readyState == 4) {
if (http_request.status == 200) {
parseData();
} else {
alert("Fehler beim Abrufen der XML Daten");
}
}
}
function parseData() {
var response = http_request.responseText;
document.getElementById('content').innerHTML = '';
document.getElementById('content').innerHTML = response;
}
function ajax_get(url) {
ajax();
http_request.onreadystatechange = handleHttpState;
http_request.open('GET', url, true);
http_request.send(null);
}
function ajax_post(url, parameters) {
ajax();
http_request.onreadystatechange = handleHttpState;
http_request.open('POST', url, true);
http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_request.setRequestHeader("Content-length", parameters.length);
http_request.setRequestHeader("Connection", "close");
http_request.send(parameters);
}
function ajax_konfigurator_rueckenbreite(url) {
var post_string =
"rueckenbreite_id=" + escape(encodeURI(document.getElementById("fRueckenbreiteId").value));
ajax_post(url, post_string);
}
Kommentar