You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by karthi <ra...@snovabits.net> on 2012/03/30 14:38:13 UTC
Which method is called in a page when click back button from
browser
Hi,
I have login page after user enters their credentials will navigate the
user to home page once after logout will again navigate to login page.
Here my problem is
i) User enters the login credentials
ii) Goes to home page
iii) Now press the logout button
iv) Sees the login page
If the user clicks on the top back button in the browser button then
obviously user will see the home page, so I have to check in the home page
that the user is active or not then show according to that either home page
or login page?
What is the method which is called when I press the back button on the
browser?
Thanks in advance...
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Which-method-is-called-in-a-page-when-click-back-button-from-browser-tp5606532p5606532.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Which method is called in a page when click back button from browser
Posted by Steve Eynon <st...@alienfactory.co.uk>.
I always enjoyed this post on the topic:
http://tapestry.1045711.n5.nabble.com/Browser-Back-Button-td4909542.html#a4917143
Steve.
On 31 March 2012 02:08, fredramsey <fr...@gmail.com> wrote:
> And this:
>
> http://www.boutell.com/newfaq/creating/backbutton.html
>
> You can probably find other solutions, just google "disable browser back
> button".
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Which-method-is-called-in-a-page-when-click-back-button-from-browser-tp5606532p5607363.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Which method is called in a page when click back button from
browser
Posted by fredramsey <fr...@gmail.com>.
And this:
http://www.boutell.com/newfaq/creating/backbutton.html
You can probably find other solutions, just google "disable browser back
button".
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Which-method-is-called-in-a-page-when-click-back-button-from-browser-tp5606532p5607363.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Which method is called in a page when click back button from
browser
Posted by fredramsey <fr...@gmail.com>.
Check out the "Disable Back functionality using history.forward" on this page
for a JavaScript solution:
http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
Caveat: I've not tried it, but it looks like it should work, IF they have
JavaScript enabled.
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Which-method-is-called-in-a-page-when-click-back-button-from-browser-tp5606532p5607360.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Which method is called in a page when click back button from
browser
Posted by karthi <ra...@snovabits.net>.
Hi thank you for your reply...
Then how can I stop that behavior, I want to show the login page once after
the user log out and clicks the browser back button?
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Which-method-is-called-in-a-page-when-click-back-button-from-browser-tp5606532p5606620.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Which method is called in a page when click back button from
browser
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Fri, 30 Mar 2012 09:38:13 -0300, karthi <ra...@snovabits.net>
wrote:
> Hi,
Hi!
> What is the method which is called when I press the back button on the
> browser?
It depends: if the browser requests the page again, the normal events are
triggered: activate, setupRender, etc. If it doesn't, the page isn't
requested again, so no events are triggered and no methods are invoked.
Basically, it's up to the browser and you can't do much about it.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org