Skip to content

Instantly share code, notes, and snippets.

@y-gagar1n
Created June 20, 2013 05:30
Show Gist options
  • Select an option

  • Save y-gagar1n/5820503 to your computer and use it in GitHub Desktop.

Select an option

Save y-gagar1n/5820503 to your computer and use it in GitHub Desktop.

Revisions

  1. y-gagar1n created this gist Jun 20, 2013.
    10 changes: 10 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    $.ajax({
    type: "POST",
    contentType: "application/json; charset=utf-8",
    url: window.location.href + "/SomeMethod",
    data: { paramA : valueA, paramB : valueB },
    dataType: 'json',
    success: function (response) {
    ...
    }
    });