I have functions like the insertion of data in the DB that I do through AJAX, my problem is that when I put the url, I put it with www and http, it works in chrome and in Firefox, but not in IE nor Opera. What is this due to?
Here I leave the AJAX code:
$("input[name='enviar_login']").click(function(){
var datos = $(".formulario_login").serialize();
$.ajax({
method:"POST",
url:"http://ejem.com/login/login.php",
data:datos,
success:function(result){
if (result=="") {
$(".login p").css({
"background":"rgba(255,0,0,.2)",
"border-radius":"10px 10px 0 0"
});
}else if(result!=""){
$(location).attr("href","http://ejem.com/login/" + result);
}
}
});
return false;
});
Works in Firefox and Chrome but not in IE or Opera
Thank you.