Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  GetLogin : function(username, password)
  2.     {
  3.         var tempVal;
  4.        $.ajax({
  5.             dataType: "json",
  6.             url: 'http://localhost:24711/api/login/',
  7.             type: 'POST',
  8.             data: {Username: username, Password: password},
  9.             async: false,
  10.             success: function (data) {
  11.                 tempVal = data;
  12.                 //callback(tempVal);
  13.             },
  14.             error: function()
  15.         {
  16.                 tempVal = -2;
  17.         }
  18.         });
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement