• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to go back to a page

 
sruthi reddy
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a situation where i need to go back to the same page.
For example, I has pageA which loads some data onload using javascript onload method.when we search on pageA we will get different set of data and when i click on link from this search results of pageA it will take back to pageB. From pageB i am using history.go method to come back to pageA. But as pageA loads its giving me intial data of pageA as it is calling onload method. Is there a way in which i can go back to same search page from wherei selected the link instead of intial data.
Thanks
sruthi
 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The simplest way would be to pass the search criteria from pageA to pageB and when in pageB don't use history.go but call pageA via the url. And here again pass the same search criteria and extend your onload to read the search criteria and move the focus there. (I hope you are not using static pages only)

------------------
Aditya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic