...

View Full Version : Resolved Loading Page Too Soon



CoolAsCarlito
01-13-2011, 06:10 PM
Basically after the myNewVar immediately comes back as being good then it loads the templates page WITHOUT showing the success message. How can I have it show the success message and then after it hides then load that page.



if (myNewVar == 'good') {
$('div.message-error').hide();
$("div.message-success").html("<h6>Operation successful</h6><p>" + templatename + " was edited and saved successfully.</p>");
$("div.message-success").show().delay(10000).hide("slow");
$('#content').load('mods/templates.php');
}

devnull69
01-13-2011, 06:20 PM
$("div.message-success").show().delay(10000).hide("slow", function() {
$('#content').load('mods/templates.php');
});



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum