RE: Back button skip a page?

2002-06-07 Thread Jerome Jacobsen

Location.replace worked perfectly.  Thanks.

-Original Message-
From: Bartley, Chris P [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 6:22 PM
To: 'Struts Users Mailing List'
Subject: RE: Back button skip a page?


Check out the javascript method "location.replace()"...i think that'll do
exactly whatcha want.

If i remember/understand correctly, i think your wait page could do a


location.replace("results.htm");


So, then, on results.htm, clicking the back button should indeed go to the
form page since the wait page was never added to the history.

chris

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Back button skip a page?
>
>
> Jerome,
>
> This may have only limited usefulness, but you may be able
> use the document's history object to skip the "wait" page in
> the browser's history.
> Something like: (Javascript)
>   window.history.go(-2)
> but I'm not exactly sure how to detect the event that the
> user clicks the back button.
>
> "Jerome Jacobsen" <[EMAIL PROTECTED]> wrote:
>
> >This may not be possible, but I hope it is.  I have a "Your
> request is being
> >processed, please wait.." page.  Once the user gets to the
> results page and
> >hit their browser's Back button I want to skip that "Wait" page.
> >
> >Here is the page flow:
> >Form Page -> Wait Page -> Results Page
> >
> >
> >
> >--
> >To unsubscribe, e-mail:  
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Back button skip a page?

2002-06-06 Thread Bartley, Chris P

Check out the javascript method "location.replace()"...i think that'll do
exactly whatcha want.

If i remember/understand correctly, i think your wait page could do a


location.replace("results.htm");


So, then, on results.htm, clicking the back button should indeed go to the
form page since the wait page was never added to the history.

chris

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Back button skip a page?
> 
> 
> Jerome, 
> 
> This may have only limited usefulness, but you may be able 
> use the document's history object to skip the "wait" page in 
> the browser's history.
> Something like: (Javascript)
>   window.history.go(-2)
> but I'm not exactly sure how to detect the event that the 
> user clicks the back button.
> 
> "Jerome Jacobsen" <[EMAIL PROTECTED]> wrote:
> 
> >This may not be possible, but I hope it is.  I have a "Your 
> request is being
> >processed, please wait.." page.  Once the user gets to the 
> results page and
> >hit their browser's Back button I want to skip that "Wait" page.
> >
> >Here is the page flow:
> >Form Page -> Wait Page -> Results Page
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   

>For additional commands, e-mail:

>
>


__
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@Netscape!
http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Back button skip a page?

2002-06-06 Thread James Mitchell

You are trying to change the behavior of the users browser.
My best advice

Don’t do that!

Maybe you can salvage a hack from this
http://developer.irt.org/script/311.htm

Best of luck!!!

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://struts-atlanta.open-tools.org
ICQ: 27651409
AOLIM: jmitchtx (and NO I don’t use AOL;)


> -Original Message-
> From: Jerome Jacobsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 06, 2002 4:57 PM
> To: Struts User
> Subject: Back button skip a page?
>
>
> This may not be possible, but I hope it is.  I have a "Your
> request is being
> processed, please wait.." page.  Once the user gets to the
> results page and
> hit their browser's Back button I want to skip that "Wait" page.
>
> Here is the page flow:
> Form Page -> Wait Page -> Results Page
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Back button skip a page?

2002-06-06 Thread Roy Truelove

Maybe in your "show results" action, a session variable can be set that the
person saw the results.  Then if they go to the "Request is being processed"
page, the page can check to see the the results were seen, and if yes,
automatically redirect to the results page.  You'll probably have to make
sure that the "Request is being processed" page is not cached.. set the
cache-control header to "no-cache".

Hope this helps,
Roy

- Original Message -
From: "Jerome Jacobsen" <[EMAIL PROTECTED]>
To: "Struts User" <[EMAIL PROTECTED]>
Sent: Thursday, June 06, 2002 4:56 PM
Subject: Back button skip a page?


> This may not be possible, but I hope it is.  I have a "Your request is
being
> processed, please wait.." page.  Once the user gets to the results page
and
> hit their browser's Back button I want to skip that "Wait" page.
>
> Here is the page flow:
> Form Page -> Wait Page -> Results Page
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: