Ciao ragazzi,
la console di facebook mi segnala il seguente errore:
codice:
Uncaught SyntaxError: Unexpected token else
Nel 'else' prima di
Questo è il source
codice:
function sendlogin()
{
var email_log = $('#email_log').val();
var password_log = $('#password_log').val();
if ( email_log == "" || password_log == "")
{
var err = '<div id="logcontent">Account not valited[img]images/nt.png[/img]</div>';
$(err).insertAfter('#trapezio2').fadeIn(1500).delay(1000).fadeOut(1500, function(){$(this).delay(1000).remove();
}
else
{
var dati = "email="+email_log+"&password_log="+password_log;
alert(dati);
$.ajax({
type: "POST",
url: "login.php",
data: dati,
success: function(msg){
var = notValited = '<div id="logcontent">Account not valited[img]images/nt.png[/img]</div>';
var errParameters = '<div id="logcontent">Invalid parameters.[img]images/nt.png[/img]</div>';
if ( msg == notValited || msg == errParameters)
{
$(msg).insertAfter('#trapezio2').fadeIn(1500).delay(1000).fadeOut(1500, function(){$(this).delay(1000).remove();
$("#email_log").val('');
$("#password_log").val('');
}
else
{
window.location = 'http://www.bitcracy.com/profile.php?id='+msg;
}
}});}}
Idee? grazie ^^