Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $('#init_sessao').click(login);
- });
- $(function(){
- $('#test_sessao').click(testLogin);
- });
- function login(){
- $.ajax({
- url: 'http://189.123.239.186:8080/cogecom/system/restful/testelogin',
- type: 'GET',
- xhrFields: {
- withCredentials: true
- },
- crossDomain: true,
- success: function(response, status, xhr){
- alert(xhr.status);
- },
- error: function(response){
- alert("response.status");
- }
- });
- }
- function testLogin(){
- $.ajax({
- url: 'http://189.123.239.186:8080/cogecom/system/restful/testesessao',
- type: 'GET',
- xhrFields: {
- withCredentials: true
- },
- success: function(response, status, xhr){
- alert(xhr.status);
- },
- error: function(response){
- alert("response.status");
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement