Hi
May I know on how to set the page automatically refresh since my system will be used by multiple user at one time.
It depends on what you want to refresh, if whole page, you may simple use HTTP Refresh.
I want to refresh only a specific page in my system
Then you may consider jQuery .load().
meta http-equiv=“refresh” content=“60”
I use this code by this code will refresh the entire system. i only want the refresh action in one page (list page)
I already found the solution from one of the post form Adam.
function refreshTable() {
tableRefresh = setInterval(function() {
$('table.ew-table > tbody').load(location.href + ' table.ew-table > tbody tr', function() {
$(this).find('tr:even').removeClass('ew-table-alt-row').addClass('ew-table-row');
$(this).find('tr:odd').removeClass('ew-table-row').addClass('ew-table-alt-row');
});
},
10000); // Change this value as appropriate to set the refresh period ... 1000 = 1 second
}
refreshTable();