You must Sign In to post a response.
Category: JavaScript
#763358
You can handle all the object in the ajax call. In the following sample handle the object "WORecord"
success: function (result) {
var resultObject = JSON.parse(result);
var text = resultObject.d;
var jsonObject = JSON.parse(text);
if (jsonObject.WORecord.WOHDR[0].ACTI == 'E') {
$('#ImgWOE').show();
}
}
By Nathan
Direction is important than speed
success: function (result) {
var resultObject = JSON.parse(result);
var text = resultObject.d;
var jsonObject = JSON.parse(text);
if (jsonObject.WORecord.WOHDR[0].ACTI == 'E') {
$('#ImgWOE').show();
}
}
By Nathan
Direction is important than speed
#763424
$.ajax({
type: "POST",
url: 'abc/Getdata',
data: {},
contentType: "application/json; charset=utf-8",
dataType: 'json',
success: function (data) {
var objdata = $.parseJSON(data.d);
}
});
Thanks & Regards
Anil Kumar Pandey
Microsoft MVP, DNS MVM
Return to Return to Discussion Forum