You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Javascripts that are initialized at page load will work inside their slide at first, but will no longer work after 5 minutes.
Every 5 minutes new HTML is loaded. Because $(document).ready() is only invoked once, at page load of the display, some Javascripts for newly loaded HTML will not start. Especially Javascripts unknown to Foyer, used by user content such as shortcodes.
Also, any inline Javascript that is output by shortcodes is stripped while loading new HTML (using jQuery). And even if it would not be stripped while loading it would not be run.
Possible solutions:
Hack jQuery to allow re-invoking $(document).ready(): http://jsfiddle.net/5dRxh/ plus make sure inline Javascript output by shortcodes is loaded and run while loading new HTML (how?).
Only add new HTML when something changed. Does not solve the problem, makes it less frequent.
Load each slide inside an iframe so each slide has their own document, also when loading new content.
The text was updated successfully, but these errors were encountered:
Javascripts that are initialized at page load will work inside their slide at first, but will no longer work after 5 minutes.
Every 5 minutes new HTML is loaded. Because $(document).ready() is only invoked once, at page load of the display, some Javascripts for newly loaded HTML will not start. Especially Javascripts unknown to Foyer, used by user content such as shortcodes.
Also, any inline Javascript that is output by shortcodes is stripped while loading new HTML (using jQuery). And even if it would not be stripped while loading it would not be run.
Possible solutions:
The text was updated successfully, but these errors were encountered: