Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:12:34+00:00 2026-05-30T03:12:34+00:00

$(document).ready(function() { $(‘#storefront’).click(function() { $(.centerdiv).load(storefront_a.php); $.blockUI({ css: { border: ‘none’, padding: ’15px’, backgroundColor: ‘#000’,

  • 0
$(document).ready(function() { 
    $('#storefront').click(function() {
        $(".centerdiv").load("storefront_a.php");
        $.blockUI({ css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#000', 
            '-webkit-border-radius': '10px', 
            '-moz-border-radius': '10px', 
            opacity: .5, 
            color: '#fff' 
        } }); 

        setTimeout($.unblockUI, 2000); 
    }); 
}); 

I got this code from Malsup . It worked on any browsers except IE. The script simply generate a full screen “Please Wait” with interval of 2 seconds before it disappear.

“What I want is to only remove the “Please Wait” screen whenever a content or the page finshed loading. is it possible. Thanks for Helping me! I will appreciate every answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:12:36+00:00Added an answer on May 30, 2026 at 3:12 am

    Use the optional callback function of jQuery.load()

    $(document).ready(function() { 
        $('#storefront').click(function() {
            $.blockUI({ css: { 
                border: 'none', 
                padding: '15px', 
                backgroundColor: '#000', 
                '-webkit-border-radius': '10px', 
                '-moz-border-radius': '10px', 
                opacity: .5, 
                color: '#fff'
            } }); 
            $(".centerdiv").load("storefront_a.php", function() {
                $.unblockUI();
            });
        }); 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

$(document).ready(function(){ $(a[href*='http://']:not([href*='+location.hostname+'])).attr(target,_blank); $(a[target!='_blank'][target!='_top']).click(function(){ $(#actualcontent).load($(this).attr(href)); window.location.hash=$(this).attr(href); return false; }); }); So I have this code
$(document).ready(function(e) { $('span#pijlr').click(function(e) { var slide = 500; var variable = $('#gallcont').css('left'); var urechts
$(document).ready(function() { $(tr).removeClass(); $(tr:gt(0)).click(function() { $(this).css(color, red) }); }); .highlight td { background: red;
$(document).ready(function() { $(button).click(getir); }); function getir() { $.ajax({ dataType: json, url:get.php, success: function(datacall) {
$(document).ready(function() { $('.cats_showall').click(function() { $('.cats_dropdown li').slideToggle(); }); }); .cats_dropdown li { display: none; }
$(document).ready(function(){ $(a).click(function() { $(#content).load($(this).attr(href)); window.location.hash = $(this).attr(href); return false; }); }); So I use
$(document).ready(function(){ $('#button').click(function(){ $('.accordion').load('<iframe src=google.com frameborder=0 scrolling=no id=myFrame></iframe>'); }); }); This can't display the iframe
$(document).ready(function() { $('a#fav').bind('click', addFav(<?php echo $showUP[uID]; ?>)); }); was before $(document).ready(function() { $('a#fav').bind('click', addFav);
$(document).ready(function() { $('a#fav').bind('click', function() { addFav(<?php echo $showUP[uID]; ?>); }); }); function addFav(id){ $.ajax({
$(document).ready(function() { $('a#fav').bind('click', function() { addFav(<?php echo $showUP[uID]; ?>); }); }); I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.