CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Auto save and/or timeout message and redirect

Print topic Send  topic

Author Message
bon733

Posts: 25
Posted: 08/23/2005, 11:29 PM

I have a client that is asking for a auto save feature and a session timeout indicator. Has anyone done something like this using ASP?
View profile  Send private message
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.



View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.