How to Refresh Page when called via the Back Button
Add the following code directly before the </head> tag within the source view of your “List” presentation layer:
<script type="text/javascript">
jQuery(document).ready(function()
{
var d = new Date();
d = d.getTime();
if (jQuery('#reloadValue').val().length == 0)
{
jQuery('#reloadValue').val(d);
jQuery('body').show();
}
else
{
jQuery('#reloadValue').val('');
location.reload();
}
});
</script>
Add this for safari and tablet
window.onpageshow = function(event) {
if (event.persisted) {
window.location.reload();
}
};
No comments:
Post a Comment