Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by eyalb on 13/11/2017.
- */
- jQuery(function($){
- $(document).ready(function(){
- $('#pu-form').submit(function(e) {
- e.preventDefault();
- var username = $('#username').val();
- var password = $('#password').val();
- var customer_id = $('#customer_id').val();
- var location = $('#location').val();
- $.ajax({
- url: 'http://212.235.34.9/tzviCohenSite/WebService.asmx/erpSite_getIsUserExist',
- headers: {
- "cache-control": "no-cache",
- "content-type": "application/x-www-form-urlencoded;charset=\"utf-8\""
- },
- type: 'POST',
- dataType: 'json',
- data: {
- UserName: username,
- Password: password,
- CustomerId: customer_id,
- cmpId: location
- },
- })
- .done(function() {
- console.log("success");
- })
- .fail(function() {
- console.log("error");
- })
- .always(function() {
- console.log("complete");
- });
- });
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement