reload page without losing Filter
reload page without losing Filter
is possible to reload table not full refresh? how can i save last filter options? location.reload() clears all filters and as result i have full table
- D Oliveira
- AppGini Super Hero
- Posts: 329
- Joined: 2018-03-04 09:30
- Location: Orlando, FL
Re: reload page without losing Filter
if you want dynamic control with JS:
https://bigprof.com/appgini/help/advanc ... parameters
Code: Select all
$j(function(){
setInterval(function(){
$j('table').parent().load('tablename_view.php?SortField=5&SortDirection=desc table', function(){
// do something after reloading the table view
});
}, 10000);
})
Re: reload page without losing Filter
Thank you, but this is simple part of table refresh with sortField but still Lose my selected filter (search plugin)
D Oliveira wrote: ↑2023-02-08 14:07if you want dynamic control with JS:
https://bigprof.com/appgini/help/advanc ... parametersCode: Select all
$j(function(){ setInterval(function(){ $j('table').parent().load('tablename_view.php?SortField=5&SortDirection=desc table', function(){ // do something after reloading the table view }); }, 10000); })
- D Oliveira
- AppGini Super Hero
- Posts: 329
- Joined: 2018-03-04 09:30
- Location: Orlando, FL
Re: reload page without losing Filter
you'd have to save filters on cookies with localStorage on filter page and check those cookies on your table-tv.js file to execute the .load()