My site is http://www.tripconnects.com. I am trying to create a login process in which when a user logs into my site, it will be logged into a third site also. I am using jquery submit() function to submit the form for authentication on third site. But when the submit event is fired it tries to open a popup. I've added the target="_blank" attribute to form also, but nothing seems to work. Here is my jQuery code :
$(window).load(function(){
if ($(".adlogin .readon .button").length == 1) {
$.ajax({
url : '/adlogin_ajax.php',
method : 'post',
success : function(response){
if(response == 'true'){
$("#ssoform").submit();
}
return false;
}
});
}
});
Please Help. Thanks!