$('#btnChange').click(function (event) {
if (event.preventDefault) event.preventDefault();
else event.returnValue = false;
var dto = { 'id': value };
//Webservice call started
$.ajax({
type: "POST",
url: ".......",
data: JSON.stringify(dto),//you need json2.min.js for JSON.stringify() method
contentType: "application/json; charset=utf-8",
dataType: "json",
beforeSend: function() {
$('#imageid').attr('src', '../images/load.gif');
//Show Loading Image which will show the progress
},
success: function (msg) {
//When Successfully completed
},
error: function (xhr, status) {
//when error occurs
}
});
});
** SO ** Что проблема ?? –
В чем проблема? –