Guest User

Untitled

a guest
Jan 23rd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. $('#modalWindow').on('click', '#send', function () {
  2. $.ajax({
  3. type: "POST",
  4. url: "/Home/LoadImage",
  5. data: $('form').serialize(),
  6. success: function (data) {
  7. alert('Привет');
  8. },
  9. error: function (error) {
  10. alert(error.responseText);
  11. }
  12. });
  13. });
  14.  
  15. [HttpPost]
  16. public ActionResult LoadImage(Car car)
  17. {}
  18.  
  19. $('#modalWindow').on('click', '#send', function () {
  20. $.ajax({
  21. type: "POST",
  22. url: "/Home/LoadImage",
  23. data: {
  24. "car": $('form').serialize(),
  25. "base64img": $('#autoPicture').attr('src')
  26. },
  27. success: function (data) {
  28. alert('Привет');
  29. },
  30. error: function (error) {
  31. alert(error.responseText);
  32. }
  33. });
  34. });
  35.  
  36. [HttpPost]
  37. public ActionResult LoadImage(Car car, string base64img)
  38. {}
Add Comment
Please, Sign In to add comment