Click here to Skip to main content
15,921,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have page 1 and page 2, on page 1 I have 4 div panels and each panel has button to upload documents, after clicking upload documents button I am going to page 2 and uploading documents and saving in session then clicking on submit, After submit I am redirecting back to page 1 by using history.back() to retain previous entered data, but here I want to display uploaded docs from page 2 session in div panel.

On history.back() I want to refresh only div from page 1.

What I have tried:

I am saving docs in session and returning back to previous page using
ZurdoDev 2-Mar-20 16:13pm    
You'll need to reload the page instead of call history.back or set a cookie or do something so that the first page knows it needs to reload the data.
Divyay208 3-Mar-20 9:49am    
without using cookies can we access div of page 1 in page2 so that we can refresh it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900