Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javascript:history.go(-2) then refresh page.  RSS feed

 
Bob Backlund
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, just a quicky problem (I hope).

I have a simple JSP page which displays the results of a SQL query, clikcing on one of the results opens a second page where you can update details of that record. What I need is a back button which will take you back to the seach results with updated details.

(i have done with a simple back button like so -- javascript: history.go(-1)

The problem is the search results page is cached and therefore displaying the details from BEFORE the changes were made (still with me?). What I need is a way of refreshing the search results page so that the new details are displayed.

Cheers
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't rely on "back" that will just get you stale pages as you have seen. You need to submit the appropriate URL to recreate the action.
[ August 17, 2005: Message edited by: Bear Bibeault ]
 
Bob Backlund
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Example please, I'm not quite sure I follow.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What URL was used to show the page in the first place? That's the URL that you'd use to show it again.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!