i changed my some line of code in my javascript
dojo.event.topic.subscribe("/value", function(value, key, text, widget){
var itemcode=value;
alert(text);
var data = {itemID:itemcode,itemDes:''};
$.post("jsondefault/callAJax.action", data, function(data, textStatus) {
if(data.itemDes.length===0){
var where_to= confirm("This item is not saved, Do you want to save it?");
if (where_to== true)
{
window.location="addItem.action";
}
else
{
window.location="createCoupon1.action";
}
}else{
$('#itdes').val(data.itemDes);
}
}, "json");
});