Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Simple.</strong></p> <ol> <li>Create a hidden element to show our images</li> <li>Use CSS to format the layout</li> <li>Use Javascript to turn the effect on /off</li> </ol> <p><strong>Put the html in your page template</strong></p> <pre><code>//hidden div that has spinner image &lt;div id="LoadingDiv" style="display:none;"&gt; &lt;img src="ajax-loader.gif" alt="" /&gt;&lt;/div&gt; </code></pre> <p>Some simple CSS to format the block (<strong>this created the translucent background that blocks user interaction</strong>)</p> <pre><code>/*the basics, and works for FF*/ #LoadingDiv{ margin:0px 0px 0px 0px; position:fixed; height: 100%; z-index:9999; padding-top:200px; padding-left:50px; width:100%; clear:none; background:url(/img/transbg.png); /*background-color:#666666; border:1px solid #000000;*/ } /*IE will need an 'adjustment'*/ * html #LoadingDiv{ position: absolute; height: expression(document.body.scrollHeight &amp;gt; document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); } </code></pre> <p><strong>Then turn it on and off as needed</strong></p> <pre><code>var ldiv = document.getElementById('LoadingDiv'); ldiv.style.display='block'; /*Do your ajax calls, sorting or laoding, etc.*/ ldiv.style.display = 'none'; </code></pre> <p>If you want more details, or need a translucent pixel to use, see my full article</p> <p><a href="http://edwardawebb.com/programming/php-programming/cakephp/disable-page-show-translucent-progress-bar" rel="nofollow noreferrer">How to fade window and show translucent progress bar</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload