Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. $("#btnSaveStatus").on("click", function () {
  2. var statusText = $(".textareaEdit").val();
  3.  
  4. $.ajax({
  5. type: "GET",
  6. url: "Default.aspx/GetStatus",
  7. data: "{statusText:'" + statusText + "'}",
  8. contentType: "application/json; charset=utf-8",
  9. dataType: "json",
  10. success: function (result) {
  11. // $('#littlbioID').text(result.d);
  12. }
  13. });
  14. });
  15.  
  16. {
  17. type: "POST",
  18. url: "Default.aspx/GetStatus",
  19. data: JSON.stringify({
  20. statusText: statusText
  21. }),
  22. // etc
  23.  
  24. $("#btnSaveStatus").on("click", function () {
  25. var statusText = $(".textareaEdit").val();
  26. var jsonText = new Object();
  27. jsonText.statusText = statusText;
  28.  
  29. $.ajax({
  30. type: "POST",
  31. url: "Default.aspx/GetStatus",
  32. data: JSON.stringify(jsonText);,
  33. contentType: "application/json; charset=utf-8",
  34. dataType: "json",
  35. success: function (result) {
  36. // $('#littlbioID').text(result.d);
  37. }
  38. });
  39. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement