Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var username = document.cookie.replace(/(?:(?:^|.*;\s*)username\s*\=\s*([^;]*).*$)|^.*$/, "$1");
- var password = document.cookie.replace(/(?:(?:^|.*;\s*)password\s*\=\s*([^;]*).*$)|^.*$/, "$1");
- if (username == "" || password == ""){
- window.location.replace("http://www.returnit.com:8080/returnitRest/login.html")
- }
- var clients;
- var oldProduct;
- var curProductList = {};
- var curProductIndex;
- var userFilter = {
- "inputEmail" : "",
- "inputFirstName" : "",
- "inputLastName" : "",
- "inputType" : "client"
- };
- $.ajax( {
- url: "http://www.returnit.com:8080/returnitRest/rest/user",
- data: $.param(userFilter, true),
- contentType: "application/json"
- } )
- .done( function(response){
- .fail( function(jqXHR){
- alert(jqXHR.statusText);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement