YUI Tab Selection

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.
10/7/2009 1:18:27 AM
Gravatar
Total Posts 15
kamran

YUI Tab Selection

On Site  Administration there is great use of YUI Tab Control but it  Does not Maintan its Tab Selection on Post. if the user save any thing on particular tab is always select the first tab.What can be done for it?

Kamran

10/7/2009 7:54:08 AM
Gravatar
Total Posts 18439

Re: YUI Tab Selection

Hi Kamran,

You might think this would be very easy to implement but in fact it is not. So the benefit vs the development effort makes this a very low priority that I have no plans to work on any time soon.

The tabs are purely a client side javascript trick, there really are not any tabs as far as the server side code is concerned and all the content is on one page and when you post back it has no idea what tab you were on. After postback we do a redirect to the current url to get out of postback so that the form doesn't post again if the page is refreshed.

Updating the site settings is a relatively infrequent task in the grand scheme of things so a few clicks to get back to the tab you were on after updating is not a big problem in my view.

Best,

Joe

10/8/2009 12:47:34 AM
Gravatar
Total Posts 15
kamran

Re: YUI Tab Selection

Hi Joe

i know we need to use javascript to handle this issue on clients Side .on your person website you mention of using jquery tab just wondering if it will solve this issue.on server side ajax tab control will definetly solve this problem.

Best ,

kamran

 

10/8/2009 9:09:48 AM
Gravatar
Total Posts 18439

Re: YUI Tab Selection

Its not that its impossible but would need to write an event handler for client side tab selection to store the current tabs in a hidden field so we would know server side what the current tab selection is.

Its just a very low priority among the many things I could be working on. There are many things that will add more value than working on this right now.

Best,

Joe

1/13/2010 6:00:08 AM
Gravatar
Total Posts 12

Re: YUI Tab Selection

Hi!

Again about same issue from little another angle.

(Not only for Tab control but also applies to Accordion too)

Tab control looks very pretty, just because it is all same page and navigation between tabs is very easy and quick.

But pointing to particular tab or to particular accourdion part seems to be very important. 

 

Is there a way for anchoring tabs some way ?

If not it is hard limitation of using that - and I should switch to sub-pages. 

 

Thanks for attention, 

Alex

1/13/2010 6:11:11 AM
Gravatar
Total Posts 18439

Re: YUI Tab Selection

I think with the jquery tabs and accordion it is possible to link to a tab if you know its anchor id. As you can see I can create a link to the version history tab for my product using jquery tabs and appending the anchor to the url

http://www.mojoportal.com/event-calendar-pro-product.aspx#tab4

Hope it helps,

Joe

1/13/2010 6:52:19 AM
Gravatar
Total Posts 12

Re: YUI Tab Selection

That's just perfect Joe!

Thank you, that's cool,

Alex

1/13/2010 1:40:38 PM
Gravatar
Total Posts 12

Re: YUI Tab Selection

Yes, it works with Tab control for me, but not with Accordion, pity..

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