can you help me why it returns error.
part of code /publications/deleteItem/’ + valueClicked works ok, i checked (proper item is properly deleted).
var valueClicked = 123456;
$.ajax({
type: "post",
url: '/publications/deleteItem/' + valueClicked, // 100% works!
success: function(xml) {
alert('602!');
},
error:function (XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown); // throwns undefined?!
}
});
so, alert(‘602!’) never exetutes…
open up the net panel in firebug and look at the response codes. successful response codes are 2xx or 3xx.
also try changing the success and error callbacks as follows and report back what you get.