I have been looking around the forums to see if it's possible to have the data display dynamically, so as someone submits or edits a form the list view updates for everyone viewing it without a page refresh.
I read that we can do an ajax refresh as long as ajax is turned on in the list options.
So I created a file in components/com_fabrik/js called list78.js with the following code in it.
I have also set mediabox instead of slimbox on the global js options.
It does nothing, anyone any ideas what I'm doing wrong? I'm know the list78.js file is included because one of the times I was messing about with the addEvent it threw an error referencing that file.
Any help is much appreciated.
Marc
I read that we can do an ajax refresh as long as ajax is turned on in the list options.
So I created a file in components/com_fabrik/js called list78.js with the following code in it.
JavaScript:
requirejs(['fab/fabrik'], function () {
Fabrik.addEvent('fabrik.list.submit.ajax.complete', function(list, data) {
function updateList78() {
if (Fabrik.blocks.list_78) {
Fabrik.blocks.list_78.submit();
}
}
var interval = setInterval(updateList78, 10000);
});
});
I have also set mediabox instead of slimbox on the global js options.
It does nothing, anyone any ideas what I'm doing wrong? I'm know the list78.js file is included because one of the times I was messing about with the addEvent it threw an error referencing that file.
Any help is much appreciated.
Marc