jQuery in Action
[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » HTML and JavaScript
 
RSS feed
 
New topic
Author

histroy.go(-1) doesnt work

Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Messages: 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.

This message was edited 1 time. Last update was at by Eric Pascarello

Bear Bibeault
Author and opinionated walrus
Sheriff

Joined: Jan 10, 2002
Messages: 36610

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.

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Messages: 55

please help
Deepak Bala
Bartender

Joined: Feb 24, 2006
Messages: 4876

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 - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Messages: 55

second time it loads properly with all 6 frames
Eric Pascarello
author
Sheriff

Joined: Nov 08, 2001
Messages: 13589

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

This message was edited 1 time. Last update was at by Eric Pascarello


Race Schedule for 2010 for this running geek:
* National Half Marathon - 03/20 [1:44:51] * Frederick Marathon - 05/02 * Baltimore Marathon - 10/16 *
Deepak Bala
Bartender

Joined: Feb 24, 2006
Messages: 4876

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

SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Messages: 55

even after changing to get....
works in a very wiered fashion
first time i get error..and second time onwars
Eric Pascarello
author
Sheriff

Joined: Nov 08, 2001
Messages: 13589

You clear your cache and than try?

Eric

Race Schedule for 2010 for this running geek:
* National Half Marathon - 03/20 [1:44:51] * Frederick Marathon - 05/02 * Baltimore Marathon - 10/16 *
Deepak Bala
Bartender

Joined: Feb 24, 2006
Messages: 4876

first time i get error..and second time onwars


Post the error here

SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
Ankita Jha
Ranch Hand

Joined: Sep 15, 2008
Messages: 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.

This message was edited 1 time. Last update was at by Ankita Jha

 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » HTML and JavaScript
 
RSS feed
 
New topic
The most intelligent Java IDE