• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Data Lost with back button used

I have a page that calls several ajax queries. These queries populate about 30 div's. Included in these divs are links which take people to detail pages. My initial page loads with none of the data in the divs when a user goes to a detail page and then hits the browser back button. How can I resolve this?
0
NickMalloy
Asked:
NickMalloy
  • 2
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
You have to reload the AJAX queries.  The Back button and usually Refresh just load the original page.
0
 
NickMalloyAuthor Commented:
is there a way to tell if the page is a reload or coming from the back button?
0
 
Dave BaldwinFixer of ProblemsCommented:
No, you need to check whatever method your are using to load the AJAX data to see if it has already been done.  If it has, then it must be a Back button and you need to load it again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now