This topic is locked

How to auto reload listpage

12/22/2016 3:20:01 AM
PHPRunner General questions
F
firecloud author

Is there any better option to reload list page for specific time period , im using this script bellow, is it possible to just reload grid/table part

<script type="text/javascript">

setTimeout(function(){

location = ''

},30000)

</script>
jadachDevClub member 12/22/2016

You can do that if the list is on a dashboard page. Set the element to reload after every so many seconds seconds.

F
firecloud author 12/23/2016



Check this for inspiration:

https://xlinesoft.com/phprunner/docs/how_to_refresh_list_page_after.htm


Working fine, thanks, now I'm looking how to add button to control auto refresh. Look like i need to learn javascript more <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=80965&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />

S
Smithy 2/6/2017



Working fine, thanks, now I'm looking how to add button to control auto refresh. Look like i need to learn javascript more <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=81279&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' />


Hi firecloud,
Did you find a solution to this auto loading from a button ????
Regards,
Craig

F
firecloud author 2/9/2017



Check this for inspiration:

https://xlinesoft.com/phprunner/docs/how_to_refresh_list_page_after.htm



Sorry to bump old post, for some reason the function is not work when i activate allow show hide and Resizeable table columns from the list setting.



Hi firecloud,
Did you find a solution to this auto loading from a button ????
Regards,
Craig



Hi Craig,

I still not have solution to control auto refresh using button, to refresh list page using button im use location.reload();
Regards

Arf

admin 2/10/2017

I must say this description makes little sense to me. You can either reload page automatically from your code or manually via button. "auto refresh using button" doesn't make any sense.

F
firecloud author 2/21/2017



I must say this description makes little sense to me. You can either reload page automatically from your code or manually via button. "auto refresh using button" doesn't make any sense.


Im using code bellow to refresh list page , what i'm looking is how to on /off auto refresh using custom button. so its will not refreshed when im doing edit.



setTimeout(function(){

Runner.runnerAJAX(Runner.pages.getUrl(pageObj.tName, pageObj.pageType)+"?a=return",

pageObj.ajaxBaseParams,

function(respObj){

pageObj.pageReloadHn.call(pageObj, respObj)

});

},60000)

console.log("Reloading active alarm page")