Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function testingFunction() {
  2. var obj = $('testForm').serialize();
  3.  
  4. $.ajax({
  5. url: '@Url.Action("TestingFunction", "BuildGiftCard")',
  6. dataType: 'json',
  7. success: function (result) {
  8. $("#savedText").html(result);
  9. },
  10. contentType: 'application/json; charset=utf-8',
  11. data: JSON.stringify(obj)
  12. });
  13.  
  14. return false;
  15. }
  16.  
  17. public JsonResult TestingFunction(PurchaseModel model)
  18. {
  19. return Json("Billing information saved successfully.");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement