CODE
$('#log_in_form form').ajaxForm({
url: 'http://localhost/admin/login-ajax.php',
success:
function(data) {
if(data == 1) {
$('#page').slideUp('slow');
var toLoad = window.location+' #page';
$('#page').load(toLoad,'');
$('#page').slideDown('slow');
$('#bg_layer').fadeOut('slow');
$('#log_in_form').fadeOut('slow');
}
else {
$('#user_not_found').slideDown();
$('#log_in_form_username input').focus(
function() {
$('#user_not_found').slideUp('fast');
}
);
$('#log_in_form_password input').focus(
function() {
$('#user_not_found').slideUp('fast');
}
);
}
}
});
url: 'http://localhost/admin/login-ajax.php',
success:
function(data) {
if(data == 1) {
$('#page').slideUp('slow');
var toLoad = window.location+' #page';
$('#page').load(toLoad,'');
$('#page').slideDown('slow');
$('#bg_layer').fadeOut('slow');
$('#log_in_form').fadeOut('slow');
}
else {
$('#user_not_found').slideDown();
$('#log_in_form_username input').focus(
function() {
$('#user_not_found').slideUp('fast');
}
);
$('#log_in_form_password input').focus(
function() {
$('#user_not_found').slideUp('fast');
}
);
}
}
});
See this part:
$('#page').slideUp('slow');
var toLoad = window.location+' #page';
$('#page').load(toLoad,'');
$('#page').slideDown('slow');
When that script is carried out, the other effects on the page is gone. How come? All the effects on the page, including navigation, social icons etc etc.
I cant seem to find out what Im doing wrong, anyone willing to help? Thaaaaaanks
Mar 1 2010, 05:09 PM, updated 16y ago
Quote
0.0161sec
0.67
5 queries
GZIP Disabled