Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. $("#system-form").submit(function (e) {
  2. $.ajax({
  3. type: "GET",
  4. url: "myurl",
  5. data: "User.Username=" + localStorage.getItem("guid") + "&User.Password=" + localStorage.getItem("password") + "&User.SecUser=" + localStorage.getItem("secUser") + "&ClientAppID=" + localStorage.getItem("ClientAppId") +"&"+ $(this).serialize(),
  6. })
  7. .done(function(data) {
  8. //parse data
  9. })
  10. .fail(function (xhr, textStatus, error) {
  11. console.log(JSON.stringify(xhr.responseText));
  12. });
  13. e.preventDefault();
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement