when deleting record from DB the page cannot be rediirected using AJAX |
An AJAX response sends all output to the AJAX success callback.
What you need to do is use the "status" property as returned to success to decide what action to take - in your case a redirect via JavaScript. Assuming you're using JQuery, the JS looks roughly like this... Code: success: function(data) In case it's not clear, remove any redirect calls from the controller method |
Messages In This Thread |
when deleting record from DB the page cannot be rediirected using AJAX - by kvanaraj - 10-04-2018, 04:10 AM
RE: when deleting record from DB the page cannot be rediirected using AJAX - by InsiteFX - 10-04-2018, 09:45 AM
RE: when deleting record from DB the page cannot be rediirected using AJAX - by dave friend - 10-04-2018, 11:52 AM
|