Scroll Position

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/23/2011 10:30:08 AM
Gravatar
Total Posts 16

Scroll Position

Hello,

A number of our MojoPortal content editors have started making extensive use of the jQueryUI - Tabs template.  The problem (more of an annoyance) we are experiencing is that if there is a tab region lower down on a page and a user scrolls to get to the tabs each time a tab is clicked the page resets back to the top and the user must scroll down to the tab area again.  Is there a way to maintain the scroll position on the page when navigating between the tabs?

Thanks for any advice.

12/23/2011 11:00:43 AM
Gravatar
Total Posts 16

Re: Scroll Position

Further to my previous post I was looking at a solution like this (http://mrcoles.com/blog/scroll-sneak-maintain-position-between-page-loads/) to solve the issue.  However, I am having difficulty implementing the code in MojoPortal.

Thanks again.

12/24/2011 12:49:31 PM
Gravatar
Total Posts 18439

Re: Scroll Position

That does not happen in my testing.

I added a bunch of them to a page to make it a long page and th eone at the bottom after scrolling to it does not go back tot he top when I click a tab.

Can you produce that problem on our demo site?

Only thing I can think of that would make that happen is if clicking the tab is doing a postback or if the user is editing it in such a way that it breaks the functionality somehow. The tabs use anchors and each anchor must be unique on a page, so maybe if they are adding more tabs or editing it in some way it is messing up the anchors.

Hope that helps,

Joe

1/9/2012 7:13:59 AM
Gravatar
Total Posts 16

Re: Scroll Position

Sorry for the delay in my reply (a couple of weeks vacation).  I have created a page on the demo site https://demo.mojoportal.com/tab-demo

If you scroll all the way to the bottom of the page and navigate the tabs you will see the page keeps jumping up.

I hope you can see what I mean.

Thanks.

1/10/2012 8:35:41 AM
Gravatar
Total Posts 18439

Re: Scroll Position

Sorry but I have no solution for that. Things like tabs are designed to organize content so that scrolling isn't needed, so my advice would be to restructure the content in a way that users don't have to scroll. ie you could have tabs inside of tabs or inside an accordion to reduce the need for scrolling.

1/10/2012 12:21:11 PM
Gravatar
Total Posts 16

Re: Scroll Position

Thanks for the advice.  I'll pass it along to the content editors.  However, nesting tabs is a little beyond them.

Thanks again.

You must sign in to post in the forums. This thread is closed to new posts.