V
V
Vladimir Krygin2017-12-21 21:09:00
Drupal
Vladimir Krygin, 2017-12-21 21:09:00

How to solve problem with content loaded before ajax event?

The bottom line is this:
1. After processing ajax (content is being deleted), follow the link to another page of the site
2. We return to the browser's "Back" button and the content changed using ajax remains old, as if it had not been updated in step 1

When you refresh the page, of course everything is in place, as expected.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Zinchenko, 2017-12-21
@locky42

so the page, consider updated, i.e. re-generated, and because the event after which the content is removed did not occur. I don't know the context of what's going on. Try creating a cookie which means the content has been removed. and thereby generate a new page without that content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question