FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Back button
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Back button [message #11898] Tue, 22 July 2003 07:00 Go to next message
ctbk is currently offline  ctbk   Italy
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? Smile


~
~
:wq
Re: Back button [message #11901 is a reply to message #11898] Tue, 22 July 2003 13:09 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #11902 is a reply to message #11901] Tue, 22 July 2003 13:12 Go to previous messageGo to next message
ctbk is currently offline  ctbk   Italy
Messages: 142
Registered: April 2002
Location: Milan, Italy
Karma: 0
Senior Member
Answered the wrong topic, I suppose Smile

~
~
:wq
Re: Back button [message #11904 is a reply to message #11902] Tue, 22 July 2003 13:19 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Hmm?

FUDforum Core Developer
Re: Back button [message #11905 is a reply to message #11904] Tue, 22 July 2003 14:42 Go to previous messageGo to next message
ctbk is currently offline  ctbk   Italy
Messages: 142
Registered: April 2002
Location: Milan, Italy
Karma: 0
Senior Member
I mean, the msgs order in the posting form wasn't the subject of my report Smile

~
~
:wq
Re: Back button [message #11906 is a reply to message #11905] Tue, 22 July 2003 15:09 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Ah, I mis-understood your question Wink.

Actually the javascript page focus code, works by redirecting the user to the message they want to see, in the case of when a specific message is identified. This is done to avoid having to reload the page with the localized link (#message_id). The browser's back button is something each browser implements differently, but in my tests both Mozilla 1.4 and IE 6.0 restore the page position when using the back button.


FUDforum Core Developer
Re: Back button [message #11907 is a reply to message #11906] Tue, 22 July 2003 15:20 Go to previous messageGo to next message
ctbk is currently offline  ctbk   Italy
Messages: 142
Registered: April 2002
Location: Milan, Italy
Karma: 0
Senior Member
Mozilla 1.4:
http://fud.prohost.org/forum/index.php?t=thread&frm_id=7&rid=132

I click on the last-post arrow near "protoss" on the "Back button" topic.

The page is loaded, I find myself on the last post.

When I push "Back", I go to the first post in the page. (And not on the forum's list of topics)

Same behaviour with IE6.1


~
~
:wq
Re: Back button [message #11908 is a reply to message #11907] Tue, 22 July 2003 15:32 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #11909 is a reply to message #11908] Tue, 22 July 2003 16:03 Go to previous messageGo to next message
ctbk is currently offline  ctbk   Italy
Messages: 142
Registered: April 2002
Location: Milan, Italy
Karma: 0
Senior Member
Mmmh, don't know if I've explained the whole thing right.

List of topics in the forum: OK
click on "lastpost" icon on a topic: OK
The page is loaded, I find myself looking at the last post: OK
Then I want to go back to le list of topics, so I push the Back button on my browser: OK
The page isn't loaded, I remain on the same page. The only thing that changes is the fact I'm looking at the top of the page: BUG

if my browsing path is

topicslist -> last message in a topic

when I push back I expect to go to the topic list again:

last message -backto-> topicslist

and not:
last message -backto-> first message in the same page.

I know it is not a serious bug, but you know users Smile

I think this bug is due to the fact that js code inserts a entry in the back button's stack. I don't know how to avoid this insert.

correct stack would be:

http://fud.prohost.org/forum/index.php?t=msg&goto=11908&rid=132
http://fud.prohost.org/forum/index.php?t=thread&frm_id=7&rid=132

instead the stack is:

http://fud.prohost.org/forum/index.php?t=msg&goto=11908&rid=132#msg _11908
http://fud.prohost.org/forum/index.php?t=msg&goto=11908&rid=132
http://fud.prohost.org/forum/index.php?t=thread&frm_id=7&rid=132

So, going back you are not going where you came from, but you remain in the page you are.


~
~
:wq
Re: Back button [message #11910 is a reply to message #11909] Tue, 22 July 2003 16:17 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: error when trying to make somebody a group leader
Next Topic: Minor: announcements placement
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 04 08:58:59 GMT 2024

Total time taken to generate the page: 0.02329 seconds