Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>The php checks is the GET variable is set, if it is it sets $animate to true. After this the Jquery does the check on the animate variable, if its set to true then the fadein should happen.</p> </blockquote> <p>For me this is very confusing. Let me try to research this a little bit more.</p> <ul> <li>You have a page with the confirmation box.</li> <li>When user press delete button the confirmation box (<code>&lt;div id="delete_confirm"&gt;</code>) is show using jQuery script.</li> <li>User press the 'delete' button on the page. What happens here? There are two options: <ul> <li>You do AJAX request.</li> <li>You do HTTP GET request.</li> </ul></li> </ul> <p>Based on your comments and the code I can guess that you do HTTP GET request. In this case you reload the page. Yes, PHP gets the proper value in <code>$_GET['post_id']</code> and the post gets deleted.</p> <p>But you get completely new HTML page. And on this page the div <code>&lt;div id="delete_confirm"&gt;</code> is invisible from the very beginning. This is why it is not shown and hidden.</p> <p>When you look at the source code you can find you JS script <code>&lt;script type="text/javascript"&gt;...</code> and I beg that the code <code>$(document).ready(function(){...</code> works too. But you get it on newly loaded HTML page.</p> <p>Please correct me if I get you wrong here.</p> <p>I think that you want to hide the confirmation box you might want to use AJAX. But then you might also want to remove the post from the page by altering the page.</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. 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