Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

avoid page expired in forms when clicking back

 
L Davies
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to create an application form where the user has multiple pages to complete. The user needs to be able to flick backwards and forwards between pages if they so wish and still have their data entered appear. The data entered can only be submitted to a database on the last page and once the whole form is complete.
All the examples I've seen is display a "Page Expired" if you click on the browsers back button so is this possible? ... can someone point me in the right direction please.
Many thanks
Laura
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That message is from the browser itself and comes up whenever you try to navigate to a page that had data 'posted' to it. Your best bet would be to implement your own back button on the page and ask them to use that one. If you check out the HTML/Javascript forum there are multiple conversations on disabling the back button but none are absolutley fool-proof, and most users dont appreciate it.
Hope that helps a little
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Laura!
As Dave already suggested, here in the Saloon we do have other forums that might be a better place to hold such a conversation, but I don't really know where to move this thread yet. Are you working with Servlets and/or JSPs, or are you looking for a strictly HTML/JavaScript solution?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic