Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#btnSaveStatus").on("click", function () {
- var statusText = $(".textareaEdit").val();
- $.ajax({
- type: "GET",
- url: "Default.aspx/GetStatus",
- data: "{statusText:'" + statusText + "'}",
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function (result) {
- // $('#littlbioID').text(result.d);
- }
- });
- });
- {
- type: "POST",
- url: "Default.aspx/GetStatus",
- data: JSON.stringify({
- statusText: statusText
- }),
- // etc
- $("#btnSaveStatus").on("click", function () {
- var statusText = $(".textareaEdit").val();
- var jsonText = new Object();
- jsonText.statusText = statusText;
- $.ajax({
- type: "POST",
- url: "Default.aspx/GetStatus",
- data: JSON.stringify(jsonText);,
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function (result) {
- // $('#littlbioID').text(result.d);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement