jQueryUI
Below is the script I used for putting SharePoint 2013 web parts into a jQuery UItabbed view.
To use the script
To use the scripts, follow these steps:
Persisting tabs
One thing you will notice is that the active tab is not persisted should the pagereload. This may not be a big deal, but I know some people find it annoying. To get around this issue I updated the above script to the script below to use cookies to make the currently selected tab stay selected should the user do something that causes the page to reload. Just follow the same instructions as above but replace the script with the one below.
“Breaking Layouts” orSome Web Parts not appearing properly
A few people have indicated that they have a problem with the “layouts breaking” or a web part not being displayed properly for some web parts in a tab, I’ve been able to track this down to scripts executing after jQuery.ready() to do things like place items in calendars. To alleviate this problem I added a delay to the execution of the tabs functionality to give these other scripts time to execute. If you are having a problem with shifting layouts, try using the below script. The script delays for 800ms, if you find this id not long enough try increasing this value in the “setTimeout” function call below. I’m not enamored with this solution, and if a better solution comes to mind I’ll be sure to let you know!