• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to go back to a page

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic