30.06.2021, 08:49
(25.06.2021, 11:48)admin Wrote: The visualization runs in a browser not in LM. The supported functions is what the browser supports.
This can be used to switch an object off when the visualization page is exited:
Code:window.onbeforeunload = function() {
if ($('body').hasClass('usermode')) {
grp.write('32/2/21', false);
}
};
Thanks!! It worsk perfectly.
I have another question, I want to know when a visualization is opened and I put this code:
Code:
grp.write('32/1/152', true);
window.onbeforeunload = function() {
if ($('body').hasClass('usermode')) {
grp.write('32/1/152', false);
}
};
But doesn´t work.
What is wrong?
Thanks!