success: function(response){
if (response.login = "Login Successful");
{top.location.href = "site_manager.cfm"}
else (response.login == "Login Unsuccessful");
{$('#contentdiv').empty().fadeIn(1000).append(response.login)};
}
Rick Faircloth wrote:
How should this be written? I can't figure it out.
I keep getting "syntax error: else"
success: function(response){
if (response.login = "Login Successful");
{top.location.href = "site_manager.cfm"}
else
if (response.login == "Login Unsuccessful");
{$('#contentdiv').empty().fadeIn(1000).append(response.login)};
}