This topic is locked

Auto Refresh List page

11/2/2010 7:58:49 PM
PHPRunner General questions
A
aalekizoglou author

Is there any way i can get the client's listpage do an automatic refresh every 2 minutes.
Also can I change the menu's caption to include the number of records show in the list page?

Sergey Kornilov admin 11/3/2010

Athanasios,
use 'JavaScript Onload Event' on the Events tab to refresh the page:

---------------------------

setTimeout( "refresh()", 6010002);

---------------------------
In regards to second request you can use 'Menu item: Modify' event

http://xlinesoft.com/phprunner/docs/menu_item_modify.htm
I guess you can run a SQL query there that calculates the number of records and updates the caption.