I use the yahoo script framework to login with ajax on a form. This worked like a charm but after upgrading to 851 it stopped. I get an errormessage with a communication error. After some (long) time I found a solution. Maybe it is useful to someone. The POST did not work anymore, I had to change that to GET
If someone knows why please POST a response, i’d like to GET one.
function logmein() {
var myForm = document.forms[0];
nsfRoot=“http://servername and path to file/website.nsf”
svrRoot=“http://”+nsfRoot.split(“/”)[2];
logInUrl = svrRoot+“/names.nsf?login”
postData = “&username=”+myForm.Username.value;
postData = postData+“&password=”+myForm.Password.value;
postData = postData+“&redirectto=”+svrRoot+“/login.txt”;
// processMe = YAHOO.util.Connect.asyncRequest(“POST”,logInUrl,myCallBack,postData);
processMe = YAHOO.util.Connect.asyncRequest(“GET”,logInUrl+postData,myCallBack,null);
}