hi- first post here:
i am making a "widget" for del.icio.us- nothing new, and this is more for learning. I am wondering how to post the user_name and password variables via AJAX. I know that i have to set the Content-Type and send the parameters...i was working with something like:

Code:
var htr=null;
function login(){
	var userName=document.getElementById("user_name");
	var userPass=document.getElementById("password")
	var params="user_name="+userName.value+"password="+userPass.value;
	var secureLogin="https://secure.del.icio.us/login";
	htr.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
	htr.onreadystatechange=confirmLogon;
	htr.open("POST",secureLogin,false)
	htr.send(params)
}
function confirmLogon(){
	if(htr.readyState==4){
		if(htr.status==200){
			//NOT SURE WHAT TO EXPECT HERE????
		}
	}
}
my questions are many, but most pertinent are concerning the secure url to which AJAX is posting...does this effect the AJAX script?

&, what should i be expecting to come back to be sure the user is logged in?

thanks