Hello. Perhaps anyone can help me.
I have a FORM (Grid Editable) whith a list of students and califications. And a column with the califications average. But calculating the average is a bit slow, so I want to stop people entering data, until the average of each student is calculated. (because if someone entrers califications very fast, some averages are not calculated)
Now, I calculate averages in a Ajax event (on lost focus)
Is that possible?
Hi,
Here’s an idea, try something like this:
Events - onLoad: (NOT onLoadRecord)
echo '<div id="progres" style="display:none;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.3);z-index: 99999;"></div>';
or
?>
<div id="progres" style="display:none;position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.3);z-index: 99999;"></div>
<?php
then with javascript change css display (block/none)
on start calculating:
document.getElementById('progres').style.display = 'block';
on end calculating:
document.getElementById('progres').style.display = 'none';
I hope this helps you
Thank you adaxx for your help, and sorry for my delay on answering. I was far away from work for a while. Your suggest is grate and worked perfect. You’re grate. Thanks again