|
On the main page I have a table with links corresponding to records in db. When the link is clicked popup window opens and user may edit content of the form (db record) and click Save or Close buttons. At the same time programming lock is applied on the db record preventing others from modifying the same record. Clicking Save/Close causes post of the form with hidden input 'action' set to 'Save' or 'Close'. In both cases pop-up is closed. Unfortunately if the user clicks on X in window decoration, application does not know about it (and record in db remains locked). Is there any clever way of either preventing user clicking X or more elegantly somehow informing server program of what had happened.
Could anybody offer a hint how to solve this problem?
__________________
Tadek
|