Solved

how to access html page by back button which was generated when request with post method was  submitted

Posted on 2000-03-25
4
155 Views
Last Modified: 2013-12-25
My web server is running servlet which is maintaining sessions. Based on session data different dynamically generated html pages are shown. All html pages update session data when their forms are submitted with post method.How can client access previously seen Html page with back method? I can not change post method.Can I repost the posted data automatoically, without using reload?
0
Comment
Question by:nishant1
4 Comments
 
LVL 1

Expert Comment

by:mafweb
Comment Utility
Have you tried the javascript history.back() command? I'm not sure whether this works for the post method
0
 
LVL 1

Expert Comment

by:lambda
Comment Utility
javascript:history.go(-1) goes one page back.

0
 

Author Comment

by:nishant1
Comment Utility
My condition is if user clicks back, the html page having form with post method must be posted again.
0
 
LVL 2

Accepted Solution

by:
DKostov earned 10 total points
Comment Utility
Try to use

window.location.reload()

with some conditional statement which will meet your requarements during the page loading. (For example you won't need this to be executed when the user accesses the page for the first time).
It will have the same effect as the "Reload" button pressed.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now