Comments

8 comments

  • Avatar
    Daniel McGee

    Perfect, I was able to use the Web Page widget for this, and the script you advised worked for some other content. Thanks so much!

    1
    Comment actions Permalink
  • Avatar
    Darius Aleksas

    I would like Rise Vision to confirm (or deny) that any attempts to reload/refresh our presentations through HTML or JS will break them?

    1
    Comment actions Permalink
  • Avatar
    Darius Aleksas

    Daniel,

    yes, you can. I use this all the time:

    <!--Reset Timer Start-->
    <script type="text/javascript">
    var IDLE_TIMEOUT = 10; //seconds
    var _idleSecondsCounter = 0;

    document.onclick = function () {
    _idleSecondsCounter = 0;
    };

    document.onmousemove = function () {
    _idleSecondsCounter = 0;
    };

    document.onkeypress = function () {
    _idleSecondsCounter = 0;
    };

    window.setInterval(CheckIdleTime, 1000);

    function CheckIdleTime() {
    _idleSecondsCounter++;
    var oPanel = document.getElementById("SecondsUntilExpire");
    if (oPanel)
    oPanel.innerHTML = (IDLE_TIMEOUT - _idleSecondsCounter) + "";
    if (_idleSecondsCounter >= IDLE_TIMEOUT) {

    document.location.href = "#container";
    }
    }
    </script>
    <!--Reset Timer End-->

    Put this at the very end of your HTML, but still within <body>. Adjust your time interval as needed (I have it here at 10s) and #id of your targeted <div> (I have it here as #container - id="container"). The way I go about it is by creating a <div> for the entire page as a container for everything first, ID it and use that ID to reset to it. I hope that helps.

    One more thing. This works 100% when used in the website pulled to RV through the Web Page Widget. When used directly in the RV HTML Widget I've had a hiccup once. The page was ignoring 10s countdown and resetting itself immediately. I restarted the player and the problem went away. I caught it once and I am not sure how often that can be a problem or what was the cause for it.

    0
    Comment actions Permalink
  • Avatar
    Daniel McGee

    Thanks! This looks really promising.

    I'm using this on the HTML Widget. I have an iFrame that I want to reload within that DIV. It doesn't appear to be reloading as the iFrame's content changes. I've double-checked my div ID (I renamed it to "container.")

    Do you hav any suggestions for what else I can check?

    0
    Comment actions Permalink
  • Avatar
    Darius Aleksas

    Ah... and iFrame. Now I am not sure as those are sometimes difficult to deal with within RV. What that iFrame is showing? If it is a webpage, you can use the Web Page widget, which can be set to refresh the content every X amount of time.

    Also, I think you need to refresh your iFrame instead. See if this helps: https://stackoverflow.com/questions/34123053/auto-refresh-iframe-html

    0
    Comment actions Permalink
  • Avatar
    Stu Lees

    Hi Darius, if you attempt to use meta "refresh" to reload the page in the HTML of your presentation, the tag is explicitly removed as we don't permit its usage. Your content will not break. Hope this helps, thanks. 

    0
    Comment actions Permalink
  • Avatar
    Darius Aleksas

    Stu, when I say 'break' I mean totally blank page after the 'refresh.' Yes, I tried 'meta refresh' but I also tried JS:

    <script>
    window.onload = function() {
    setTimeout(function () {
    location.reload(true)
    }, 60000);
    };
    </script>

    And got the same results. Is this not permitted as well? I mean should I just stop trying because any 'refresh' is blocked and only available through the Web Page widget?

    0
    Comment actions Permalink
  • Avatar
    Stu Lees

    Darius, yes we only support refreshing a page via Web Page Widget. Thanks

    0
    Comment actions Permalink

Please sign in to leave a comment.