Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

history.back() in Netscape 7.2

 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using history.back() in Netscape 7.2, but it is not working as expected. The code is working perfectly in IE 6. Can u help?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to try

history.go(-1)

Eric
 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't work too!
Actually, I am using the Struts framework.
I want the previous page's location to be reloaded.
If the code works perfectly in IE6, I wonder why it doesn't in NN7?
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are talking about apples and oranges when you are comparing browsers like that!

Does hitting the back button on the browser work on Netscape?
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know, I think it is better, if you use actual url instead of history.go

I mean, let say I added your page to Favorites - than you never know were that go(-1) will bring you.
 
Kedar Dravid
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a precise definition problem:
The user is presented with a form.
If the form has already been filled by him, he updates it from that page,
else he adds/saves the form for the first time.
Whatever acion he takes, an Action class of Struts is called, which forwards control on successful updation/addition to a generic application-wide JSP, which displays alerts, or forwards control back to the original page. The generic JSP has been used a slight modification to the core Struts framework. The alert message is passed from the Action class.
On successful updation/addition, control has to be forwarded to the class which retreves the record. history.back() (in the generic JSP) works perfectly well on IE 6, tranferring control back to List Action class, and RELOADING the same. The reloading is not working in NN7.2
I have tried using self.location.reload(true), location.href, location.reload - but it doesn't reload the page.
 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!