Back button [message #11898] |
Tue, 22 July 2003 07:00 |
ctbk
Messages: 142 Registered: April 2002 Location: Milan, Italy
Karma: 0
|
Senior Member |
|
|
Since 2.5.0 I noticed you changed the way users are brought to a specific message by adding a javascript at the bottom of the page doing a
location.hash="....";
In this way, when a user clicks on a link bringing him to the last message in a topic, and then pushes the back button it's not taken to the "thread" page he cames from, but to the 1st post of the page he's reading.
Is there a way to avoid this back button's inconsistent behaviour?
And, out of curiosity, why have you implemented it this way?
~
~
:wq
|
|
|
Re: Back button [message #11901 is a reply to message #11898] |
Tue, 22 July 2003 13:09 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Actually the order was changed to make it easier on the user, normally the messages are displayed from oldest to newest. On the post form the order is reversed, since you are likely to be replying to the last message rather then the 1st.
FUDforum Core Developer
|
|
|
|
|
|
|
|
Re: Back button [message #11908 is a reply to message #11907] |
Tue, 22 July 2003 15:32 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
It all depends on where your screen focus at the time of page change, if you were at the bottom of the page that's where it'll take you, if you were at the top of the page that's were you'll go back.
Either way this is the way it is going to stay, the code is JavaScript. The proper browser behaviour would be to execute that code when page is loaded, making the focus of your page the message that you were on.
FUDforum Core Developer
|
|
|
|
Re: Back button [message #11910 is a reply to message #11909] |
Tue, 22 July 2003 16:17 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Ok that does make sensce, it appears the browser remebers the JavaScript positions, so if you are using the arrow nagivation you may have some not necessarily useful stuff in your back history.
I am not sure if this can be prevented, since I do not believe the browser's back history can be edited by a web page, that would be a nasty security issue.
FUDforum Core Developer
|
|
|