Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Refreshing a page periodically

$
0
0
Hi guys.

I would like to periodically refresh a page. I have a variable that determines the frequency. Its a session variable. But no matter the default value of the session variable  it always fires the true part.

The script is below. Any advice would be appreciated.

functionRefreshMaintainIncidents()
    {varIsHyperRefresh='<%= Session["IsHyperRefresh"] %>';if (IsHyperRefresh)
        {setTimeout("location.reload(true);", 1 * 10000);
        }else
        {setTimeout("location.reload(true);", 1 * 60000); 
        }
    }RefreshMaintainIncidents();

Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>