• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Submit post will scroll to the new post

bloh

Active member
#1
Can someone guide me how to achieve this:

When submit a new post, the browser will scroll to the newly created post.

Any help would be appreciated.
 

Brogan

XenForo moderator
Staff member
#2
It's not clear what you're asking.

Posts are made via the editor at the bottom of the page and inserted without a page reload.
 

bloh

Active member
#3
Yup.
When I click submit, the page stay at the same location without page reload.

What I want is that:
When I click submit, it will scroll to the #newmessage without page reload.

It may sound weird, but this is what I want to achieve.
 

Martok

Well-known member
#5
What's wrong with it as it is? Currently it's pretty near the top of the new message anyway (well it's above it so it's not cutting off any of the start of the message).

If you use More Options and use the full editor it will do what you want.
 

bloh

Active member
#6
Cause I'm trying to make the editor "position: fixed", so I need it to scroll to bottom after submit.
 
Last edited:

Martok

Well-known member
#7
So basically users who want to double check their posts after submission will have to scroll up the page before they start reading, especially for longer posts, if you are able to implement this.
 

bloh

Active member
#8
So preferably it can scroll straight to the newly created post.

If can't, scroll to bottom of the page would be the next best option.