Data Should Be written in this form
if the argument is string
data:'{Pid:'+ JSON.stringify(faram)+'}',
or
data:"{Pid:'"+ JSON.stringify(faram)+"'}",
Success
success: function(msg) {
var orders =msg;
if (orders.length > 0) {
alert(orders);
To Show The Errors
error: function(xhr, textStatus, errorThrown) {
alert(xhr.status);
alert(errorThrown);
alert(xhr.responseText);
No comments:
Post a Comment