aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes histroy.go(-1) doesnt  work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "histroy.go(-1) doesnt  work" Watch "histroy.go(-1) doesnt  work" New topic
Author

histroy.go(-1) doesnt work

Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
Hello ranchers,

I m facing problem using history.go(-1) .

My main page is divided into 6 section .Each section is one iframe
When i click on link of one of the iframes a new page say abs.jsp is loaded.
This abc.jsp has back button which uses history.go(-1) .

First time history.go(-1) gives me the below pasted error
Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.




but from 2nd time it works properly.

I have changes the form's method from POST to GET.

can any one help me in this issue.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60055
    
  65

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
please help
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

The description does not make sense. You cannot change a form's submit method.

The 2nd time does the page with 6 frames load up ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
second time it loads properly with all 6 frames
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
POSTs use that message to prevent forms from submitting the smae information two times. Do you want to pay a bill twice online or buy tickets multiple times? No, the browser helps to prevent that. If it works with GET, why are you not using GET?

6 iframes? Does not sound like fun

Eric
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

The second back request probably loads the GET which got you through to the page with 6 iframes.
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
even after changing to get....
works in a very wiered fashion
first time i get error..and second time onwars
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You clear your cache and than try?

Eric
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

first time i get error..and second time onwars


Post the error here
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Posts: 55
eric even after clearin the cookies,getting the same error.

Please find the error pasted belwo,


Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: histroy.go(-1) doesnt work
 
Similar Threads
Browser back button
history.back() problem ???
Spring Wizard keyboard back button takes to Expired page in IE6
back button problem
Warning: Page has Expired message when click on back button