How to pass parameters to controller using ajax and javascript? -
i trying delete item shopping cart using ajax javascript, have trouble passing parameters controller. parameters null in controller. my javascript code shows below: function removerow(itemid, rowid){ if (xmlhttp == null) { alert("your browser not support ajax!"); return; } var query = "action=remove&item=" + itemid; /* alert(query); */ xmlhttp.onreadystatechange = function statechanged() { if (xmlhttp.readystate == 4) { var row = document.getelementbyid(rowid); row.parentnode.removechild(row); } }; xmlhttp.open("get", "addto.htm", true); xmlhttp.setrequestheader("content-type", "application/x-www-form-urlencoded"); xmlhttp.send(query); return false; /* var row = document.getelementbyid(rowid); row.parentnode.remo...