'Processing' pop-up

Hi J. D. I already deleted my code for the lightbox and simply froze the page while saving is done but its an interim solution.

Basically what I’m trying to do is to prevent user interact with page while data is being saved in DB (it takes a few seconds). I don’t want user to look at a blank page or think nothing is happening so I though about disabling the page and showing a pop up window while saving is done in the background.
The light box solution (as I understand it) is not good because:

  1. User can click outside lightbox and it will close

  2. While light box is open code is run from lightbox code so there is no way for it to know processing is done since I can’t update nothing while its open

Assaf