How to reload content on popup open?
-
Hello,
I’m seeing some weirdness with the popup and I have determined it’s because the content is not freshly pulled when it opens. In theory, this is a good way to do it because the popup opens faster and doesn’t have to wait for a load or wp-ajax call or anything. On the other hand, when you try to put login or AJAX forms in the popup, the user has to completely refresh the page in order to fix any errors or clear any content.
In case the above doesn’t make sense, try this:
1. Create a popup with a form in it
2. Open the form and fill it out (don’t submit it)
3. Close the popup
4. Re-open the popupyou will notice the fields are still filled. Is there a way to completely refresh the content of the popup dynamically?
- The topic ‘How to reload content on popup open?’ is closed to new replies.