$("#getWSDLfunction").click(function() {
$.ajax({
url: base_url+'testetes',
type: 'POST',
async:false,
data:{
user_email:user_email
},
dataType: 'json',
error: function(){
//alert('Error loading');
},
success: function(data){
if(data == "logged out"){
window.location = base_url;
}
}
});
});
$.ajax({
url: base_url+'testetes',
type: 'POST',
async:false,
data:{
user_email:user_email
},
dataType: 'json',
error: function(){
//alert('Error loading');
},
success: function(data){
if(data == "logged out"){
window.location = base_url;
}
}
});
});
No comments:
Post a Comment