• 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

history.back() in Netscape 7.2

 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic