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
    Jul 2010
    Location
    Sheffield
    Posts
    822
    Thanks
    93
    Thanked 18 Times in 18 Posts

    Display loading message

    First of sorry if this is the wrong section and if it is can someone move this/tell me where to post this?

    I have a iframe on my site what is quite large so it takes time to load so i want a loading text/image to display when its loading, i figure i could do a loading message in a div and once iframes loaded make the div hidden. I know divs can be shown/hidden using JS but i dont know how to code ot. Can someone give me a hand ?

  • #2
    New Coder
    Join Date
    Dec 2010
    Posts
    62
    Thanks
    2
    Thanked 0 Times in 0 Posts
    try this...
    Code:
    $().ajaxStart(function() {
    	$('#loading').show();
    });
    $().ajaxStop(function() {
    	$('#loading').hide();
    });
    Last edited by ankifreeze; 02-16-2011 at 01:22 AM.


  •  

    Posting Permissions

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