1. 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

Discussion in 'Styling and Customization Questions' started by bloh, Nov 28, 2015.

  1. bloh

    bloh Member

    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.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.
  3. bloh

    bloh Member

    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.
  4. bloh

    bloh Member

    If this is not possible, what about scrolling to the bottom of the page after clicking submit?
  5. Martok

    Martok Well-Known Member

    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.
  6. bloh

    bloh Member

    Cause I'm trying to make the editor "position: fixed", so I need it to scroll to bottom after submit.
    Last edited: Nov 28, 2015
  7. Martok

    Martok Well-Known Member

    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.
  8. bloh

    bloh Member

    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.

Share This Page