Force reload of Presentation

Problem: Hi I want that presentation is reloaded when it starts. What I want is that users that has used the page before HTM5 loads the presentation again so they do not get an old version of the presentation I have made.
I have uploaded the files to the html folder and linked the html in iframe in wordpress.

ActivePresenter version: 9

OS: WIndows

Notes:

When opening an ActivePresenter 9 project’s output, a Resume Feedback will appear to ask if you want to resume the presentation from the last slide viewed. This is the default events-actions settings of the project (ActivePresenter button > Project > Properties pane > Interactivity tab > Events - Actions).

If you want the presentation to reload every time it starts without showing the feedback layer, you can replace the default action with the Restart Presentation action with the same condition.

Regards,

Hi, I will try to rephrase my question.

I am asking if someone has a script that will make sure that the content is fetch from the server to make sure that the latest version is loaded and not the local verision.

@Hang Thank you for the comment.

I think you can use script to reload the iframe in this case. For example:

// Add this script to your HTML file that contains the iframe
// or to the HTML file of the presentation itself

// For the WordPress page containing the iframe
document.addEventListener('DOMContentLoaded', function() {
  var iframe = document.querySelector('iframe');
  if (iframe) {
    // Add a timestamp or random parameter to force a reload
    var currentSrc = iframe.src;
    var timestamp = new Date().getTime();

    // Check if the URL already has parameters
    if (currentSrc.indexOf('?') !== -1) {
      iframe.src = currentSrc + '&nocache=' + timestamp;
    } else {
      iframe.src = currentSrc + '?nocache=' + timestamp;
    }
  }
});

Regards,

1 Like