URGENT - Save on close

I have a form that runs on the web, and when the user closes down the window (IE %) the document will automatically save.

I have tried:

In the unload event of the notes form try the following;

frm = document.forms[0];

frm.submit();

But this seems like it is not saving as the window is closing down before the save can initialise.

I thought about the QueyrClose Programme part of the form but this only works for the client.

Has/Can anyone please shine some light on how to save the document automatically when the window is shut down. I am needing this urgently as the database is meant to be finished for today and this is the last bit that is giving me major problems.

Many thanks all

Subject: URGENT - Save on close

This has not been done before because it’s highly undesirable thing to do.

If a person wants to save a document, he/she will submit the form by clicking on a button or link.

Subject: RE: URGENT - Save on close

Thank you for your reply, and I know it is highly undesirable.

But, I do infact need a document to be saved autoamtically without the user doing anything.

Subject: RE: URGENT - Save on close

their is onUnload and onbeforeUnload that u can use to save document with java script

:slight_smile:

Subject: URGENT - Save on close

Why not just save the document in the PostOpen?