View Full Version : Resolved Loading Page Too Soon

01-13-2011, 07: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-success").html("<h6>Operation successful</h6><p>" + templatename + " was edited and saved successfully.</p>");

01-13-2011, 07:20 PM
$("div.message-success").show().delay(10000).hide("slow", function() {