I have this script called admin_order.js, which works fine. Due to a certain plugin which loads ajax content after ajax content has been loaded admin_order.js now doesn't work.
I tried this in the response function but no success.
$.getScript("../../themes/mywebsite/js/admin_order.js");
How do i reload the script?
admin_order.jsmodified on the server due to theajaxca;;s? If not I would investigate further why your script stops working. If yes, then maybe you should restructure your code.admin_order.jshas events attached to but the class names of those elements remain the same.. Any idea?ajaxcall and update the content on the front end? Your current solution partially reloads the page and I guess reloading the page (location.reload();) doesn't work as you end up in the wrong state.