What is wrong with next jQuery code?
<p>can you help me why it returns error.</p>

<p>part of code /publications/deleteItem/' + valueClicked works ok, i checked (proper item is properly deleted). </p>

<pre><code>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?!
    }

});
</code></pre>

<p>so, alert('602!') never exetutes...</p>
