CopyPastor

Detecting plagiarism made easy.

Score: 0.8200157284736633; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-06-11
by Dipak384

Original Post

Original - Posted on 2014-01-31
by user3255682



            
Present in both answers; Present only in the new answer; Present only in the old answer;

function showErrorMessage(xhr, status, error) { if (xhr.responseText != "") {
var jsonResponseText = $.parseJSON(xhr.responseText); var jsonResponseStatus = ''; var message = ''; $.each(jsonResponseText, function(name, val) { if (name == "ResponseStatus") { jsonResponseStatus = $.parseJSON(JSON.stringify(val)); $.each(jsonResponseStatus, function(name2, val2) { if (name2 == "Message") { message = val2; } }); } });
alert(message); } }
This is what worked for me
function showErrorMessage(xhr, status, error) { if (xhr.responseText != "") { var jsonResponseText = $.parseJSON(xhr.responseText); var jsonResponseStatus = ''; var message = ''; $.each(jsonResponseText, function(name, val) { if (name == "ResponseStatus") { jsonResponseStatus = $.parseJSON(JSON.stringify(val)); $.each(jsonResponseStatus, function(name2, val2) { if (name2 == "Message") { message = val2; } }); } });
alert(message); } }

        
Present in both answers; Present only in the new answer; Present only in the old answer;