You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emmanuel Potvin <ma...@machine.dnsalias.org> on 2003/05/15 19:34:35 UTC
RE : Browser Back button
Exact, and it's
Location.replace(url)
You can do :
<a href="javascript:Location.replace('http://www.yahoo.com')">Forget
that page and go to yahoo!</a>
When you'll click on that link, you're current page will be dumped to
the chaos and you'll never see it again in the history!
-----Message d'origine-----
De : Chen, Gin [mailto:Gin.Chen@NielsenMedia.com]
Envoyé : 15 mai, 2003 13:29
À : 'Struts Users Mailing List'
Objet : RE: Browser Back button
negative. there is no way to manipulate a user's history.
i think the code that your thinking of is javascript that will replace
the page hence making it so that the back button doesnt have any
functionality. This particular question is brought up a million times on
javascript lists as well as these type of lists. The short answer is
that you can't do anything about it other then to enforce it in your
code. One way to do this is to have a increment that is submitted with
the page. That way you can first check the increment to make sure that
the page has not already been submitted before. It's been posted before
so you might want to do a quick search through the archives. -Tim
-----Original Message-----
From: Mick.Knutson@ubsw.com [mailto:Mick.Knutson@ubsw.com]
Sent: Thursday, May 15, 2003 1:23 PM
To: struts-user@jakarta.apache.org
Subject: RE: Browser Back button
use javascript to set history forward. I don't know the code, but it
works.
-----Original Message-----
From: Caroline Holanda [mailto:spencercaroline@yahoo.com]
Sent: Thursday, May 15, 2003 7:20 PM
To: struts-user@jakarta.apache.org
Subject: Browser Back button
Hi List!
How can I implement the treatment of avoiding user
backing a page from the browser back button and
resubmiting a form that must not be resubmitted?
Examples codes are welcome.
Thanks a lot!
Caroline Holanda
IT Consultant - Brazil
_______________________________________________________________________
Yahoo! Mail
O melhor e-mail gratuito da internet: 6MB de espaço, antivírus, acesso
POP3, filtro contra spam.
http://br.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org