Click here to Skip to main content
14,644,614 members
Rate this:
Please Sign up or sign in to vote.
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
history.back();
Posted
Comments
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100