Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Start by trying to diagnose the issue using the browser dev tools. Press F12 to get the dev tools panel, and go to the Network tab.</p> <p>Now click your checkbox and watch for what happens...</p> <ul> <li><p>Does the network panel show the request being made to <code>remove_task.php</code>?</p> <p>If not, then there's a problem in your javascript where it registers the click event. Maybe the selector is wrong or something like that.</p> <p>If the network panel <em>does</em> show the request being made, click on it there to get more info about it, and then look at the request data and the response data.</p></li> <li><p>Does the request send the data you're expecting it to, and in the correct format?</p> <p>If not, then you'll need to debug your Javascript to see why. I can't really help with that unless I actually see the data, but you should be able to get an idea of what the problem is by what's being sent incorrectly. Maybe the checkbox value is wrong?</p> <p>If it does look right, then move on to the response.</p></li> <li><p>Does the response contain the data you expect?</p> <p>If it has a 404 response code, then your URL is incorrect. Maybe the path is wrong?</p> <p>If the response includes an error message, then you should be able to debug the PHP from that. It'll have the relevant line numbers in it, so that should be enough to get you going.</p> <p>If the response is blank, then your PHP code isn't sending anything back: Maybe a syntax error (with error suppression), or maybe the program ends before it gets to <code>echo</code> the data. Either way, further debugging in the PHP will be required.</p></li> </ul> <p>That's about as much help as I can give, given the info you supplied in the question. I hope that's enough to get you started.</p>
 

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