Hallo
Ich habe folgendes Skript erstellt welches einwandfrei funktioniert und einen Login auf einer Seite vornimmt:
xmlHttp = new XMLHttpRequest();
xmlHttp.open('POST', xloginurl, true);
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlHttp.onreadystatechange = loginReadyStateChanged;
xmlHttp.send(req);
Nun wollte ich das Prototype-Framework für dieselbe Anfrage benutzen:
new Ajax.Request(xloginurl, {
method:'post',
requestHeaders: ['Content-Type','application/x-www-form-urlencoded'],
postBody: req,
onComplete: loginReadyStateChanged
});
Leider funktioniert das mit dem Framework nicht. Als responseText erhalte ich immer wieder das usrprüngliche Formular.
Kann es daran liegen dass man nach dem Login weitergeleitet wird? Oder liegt es viellicht daran dass HTTPS benutzt wird? Was macht Prototype zusätzlich?
Viele Grüsse
Marco