Welcome Guest, Not a member yet? Register   Sign In
Filters:after appears to be ignored
#7

(04-20-2020, 07:21 AM)Gary Wrote: If you need to see code demonstrating this, a great example is the framework's built-in after filter, 'toolbar'... which has nothing updated in it until the page is refreshed.

The DebugToolbar filter does apply changes to the actual output of the script on the way out. It can either add a header or insert javascript. Both of these changes are applied to the body of the response that has been generated and is getting ready to be displayed to the client.

So, there's no reason you can't do this on a Javascript response. What makes you think you cannot? Do you have an example that's not working?
Reply


Messages In This Thread
Filters:after appears to be ignored - by Gary - 04-20-2020, 06:33 AM
RE: Filters:after appears to be ignored - by Gary - 04-20-2020, 07:21 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 03:50 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 06:39 AM
RE: Filters:after appears to be ignored - by kilishan - 04-21-2020, 06:53 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 08:48 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 09:21 AM
RE: Filters:after appears to be ignored - by Gary - 04-22-2020, 04:38 AM
RE: Filters:after appears to be ignored - by Leo - 04-23-2020, 12:54 AM
RE: Filters:after appears to be ignored - by Gary - 04-23-2020, 03:14 AM
RE: Filters:after appears to be ignored - by Leo - 04-23-2020, 05:14 AM
RE: Filters:after appears to be ignored - by Gary - 04-24-2020, 09:07 AM
RE: Filters:after appears to be ignored - by Gary - 04-28-2020, 10:09 AM
RE: Filters:after appears to be ignored - by Leo - 04-29-2020, 01:07 AM
RE: Filters:after appears to be ignored - by Gary - 04-30-2020, 06:10 AM
RE: Filters:after appears to be ignored - by Leo - 04-30-2020, 12:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB