eiden
Posts: 34
|
| Posted: 08/26/2005, 2:06 AM |
|
For the session timeout part:
If you wish to notify the user about the session timeout, you can use a javascript setTimeout(). (http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/setTimeout.asp)
Example:
<script language="javascript">
function SessionAlert(){
window.setTimeout("alert('Session is about to expire!!')", 1100000);
}
</script>
Another way is just to maintain the session without notifying the user. You can do this by using remote scripting. Read more: http://developer.apple.com/internet/webcontent/iframe.html
The "auto-save" part is a bit more tricky.
Submit the form with javascript
This is the fastest way of creating a autosave function. But when the form submits, it will be a delay which can be annoying for the user.
Submit the form with remote scripting
This one is more difficult to create. But the user won't notice that the data is being autosaved. This way you don't have to write the data to the database, you can store it in session variables.
|