Of course you cannot dequeue it if it contains other functionality aswell, but maybe you're lucky. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. . 03 : 15. Please enable JavaScript to view this page properly. This site is not affiliated with the WordPress Foundation in any way. (3) }, 5000); } } As you want to reload the page after 5 seconds, then you need to have a timeout as suggested in the answer. is fired once and then forgotten, so it's not reloading before the deletion is completed. Like I said, try to find the enqueue handler of the script that binds the events. The server returns Json object with value "true or false" like this: Is there any way to refresh page after 5 seconds if the server returns true? How to refresh table body after Ajax success? - Technical-QA.com The nature of simulating nature: A Q&A with IBM Quantum researcher Dr. Jamie We've added a "Necessary cookies only" option to the cookie consent popup. We will cover the following topics in this tutorial: JavaScript is a very powerful client-side scripting language. Therefore, I have added location.reload() inside the success callback function.In addition, I have used the setInterval() method to set a delay of 7 seconds to do the reload process. How to Find checkbox is selected or not JQuery? Instead I could have focused on stopping the AJAX call reaching the controller. We have used location.reload() method to reload the page. I use Jquery to make an Ajax request. // do some check here to determine whether or not to refresh the page. We have used setInterval() method in the above code. How to check element is visible or not in JQuery? The location.reload() method reloads the resource from the current URL. How to print and connect to printer using flutter desktop via usb? My code is GPL licensed, can I issue a license to have my code be distributed in a specific MIT licensed project? It helps display up-to-date CRUD operations. Output the respective message. Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. Share Improve this answer Follow edited Feb 13, 2020 at 6:15 answered Feb 13, 2020 at 5:19 Jamil Ahmed In your ajax success callback do this: success: function (response) { setTimeout (function () { location.reload () }, 5000); } As you want to reload the page after 5 seconds, then you need to have a timeout as suggested in the answer. As you want to reload the page after 5 seconds, then you need to have a timeout as suggested in the answer. We can refresh div, table or button content etc. Did this satellite streak past the Hubble Space Telescope so close that it was out of focus? This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL). Find the Daily uses source code for .Net, Jquery, Javascript and SQL Server.. 2. How to Refresh Page Using JavaScript & jQuery - JS-Tutorials contentType:'application/json;charset=utf-8', ,