Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • 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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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