Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2008
    Posts
    682
    Thanks
    114
    Thanked 2 Times in 2 Posts

    Loading Page Too Soon

    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.

    Code:
    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');  
                        }
    Last edited by CoolAsCarlito; 01-13-2011 at 07:23 PM.

  • #2
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,398
    Thanks
    12
    Thanked 570 Times in 563 Posts
    Code:
       $("div.message-success").show().delay(10000).hide("slow", function() {
          $('#content').load('mods/templates.php');  
       });


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •