Note that there are some explanatory texts on larger screens.

plurals
  1. POJQUERY caching if Back-button after posting to form - JQUERY fadeIn still visable
    primarykey
    data
    text
    <p>I am posting a form at the end of a JQUERY fadeIn.</p> <ul> <li>When the user hits submit - a DIV '<strong>SWITCHING_SCREENS</strong>' - with a message in it, is faded in via JQUERY and covers the form page. </li> <li>Once that div is fully faded in - javascript then posts the form to another page.</li> </ul> <p>Javascript:</p> <pre><code> Theform = document.getElementById('customers_form'); $('#SWITCHING_SCREENS').fadeIn('slow', function(){ Theform.submit(); }); </code></pre> <p>This is all working well, and I have no problem with the submitting or anything else. But on the chance that the user then hits the <strong>browser back button (firefox)</strong> - the SWITCHING_SCREENS is still visible.</p> <p>I have seen back-button caching of form elements - but expected the JQUERY to reset on back-button. Or I just didn't expect it to cache.</p> <ul> <li><strong>It seems as though it has cached?</strong></li> <li><strong>Has the JQUERY cached this state of the DIV?</strong></li> </ul> <p>I have tried: </p> <p>Javascript:</p> <pre><code>Theform = document.getElementById('customers_form'); $('#SWITCHING_SCREENS').fadeIn('slow', function(){ Theform.submit(); $('#SWITCHING_SCREENS').hide(); }); </code></pre> <p>and this does remedy the caching of the DIV in the 'fadeIn' state when the browser back-button is used... </p> <p>But it also removes the DIV <strong>before</strong> the page actually switches to the posted page. I want the div to remain visible while the page is posting to the next page - and to be gone if the visitor hits the back button.</p> <p>This seems to only be happening in Firefox.</p> <p>Thank you. Regards.</p>
    singulars
    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.
 

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