manually create spinning activity indicators
<p>I apologize if this question is answered somewhere, but I couldn't find it.</p>

<p>I am working on editable javascript grid for MS Dynamics CRM and I am trying to display loading screen when user clicks "Save" button on the grid (the loading spinner should only be covering my grid - which is actually a HTML web resource displayed inside the CRM window). It takes about 2-5 seconds until CRM system saves the data and reloads my grid. So I want to display the loading screen during that time.</p>

<p>I found spin.js <a href="http://spin.js.org/" rel="nofollow">http://spin.js.org/</a> and it seems that it can be easily implemented but I am failing to realize on what event should I display the loading screen?</p>

<p>Basically, I have a table and when user clicks "Save" or "Delete" button, I wish to show that there is something going on under the hood.</p>

<p>Thank you very much for you time and help!</p>