Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. function submitEdit(value, settings)
  2. {
  3.    var edits = new Object();
  4.    var origvalue = this.revert;
  5.    var textbox = this;
  6.    var result = value;
  7.    edits[settings.name] = [value];
  8.    var returned = $.ajax({
  9.            url: "http://URLTOPOSTTO",
  10.            type: "POST",
  11.            data : edits,
  12.            dataType : "json",
  13.            complete : function (xhr, textStatus)
  14.            {
  15.                var response =  $.secureEvalJSON(xhr.responseText);
  16.                if (response.Message != "")
  17.                {
  18.                    alert(Message);
  19.                }
  20.            }
  21.            });
  22.    return(result);
  23.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement