Server response from json to javascript alert
I am using webrtc(javascript,json,ajax) client to send request and c#web
service to validate on server. I am posting a json request and the result
is being displayed as xml in the console of the browser. Is there a way to
get the response as an alert or pop up message using javvascript?
jQuery.ajax({
url: urlPath,
type: "POST",
contentType: "application/jsonp; charset=utf-8",
data: jsond,
dataType: "jsonp",
success: function (response) {
alert("Details saved successfully!!!" + response);
alert(xhr.responseText);
},
No comments:
Post a Comment