jquery-ui-tabs

check if jQuery UI tabs have been initialized (without checking for class)

[亡魂溺海] 提交于 2019-11-30 00:30:52
问题 Using jQuery UI tabs - and I've written a plugin that integrates with ui tabs. I've got the plugin setup to initiate jQuery UI tabs if it .tabs() hasn't been called, but this just does a simple class check: if(!$globalTabs.hasClass("ui-tabs")){ $globalTabs.tabs(); } But this is problematic, because often to avoid FOUC, developers add in the UI classes to the the tabs to get a better initial render before document.ready. I could check for a different class, such as `ui-widget1, but wondering

get the current tab in jQuery UI tabs

浪子不回头ぞ 提交于 2019-11-29 17:16:05
问题 I am using jQuery UI Tabs inside of the jQuery UI dialog window. I've come across an instance, where I need to find the id of the current tab when clicking on one of the dialog buttons. Looking at the HTML generated by jQuery UI tabs and dialog, I can't really find a way of doing this. The <ul> elements that hold the tab, are about 3 <div> 's away from the group of dialog buttons. I tried: $("#DialogBox").dialog({ autoOpen: false, modal: true, buttons: [ { text: "Save", click: function () {

Preload JQuery UI tabs in the background

放肆的年华 提交于 2019-11-29 15:27:46
问题 All, How can I preload all JQuery UI tabs while the first tab is still loading? I have tried the remote:true option, but it didnt work? There should be ajax spinners next to each tab name while the tabs are loading. Thanks 回答1: Try something like this: $tabs = $('#tabs').tabs({ cache: true }); var total = $tabs.find('.ui-tabs-nav li').length; var currentLoadingTab = 1; $tabs.bind('tabsload',function(){ currentLoadingTab++; if (currentLoadingTab < total) $tabs.tabs('load',currentLoadingTab);

JQuery UI tabs: How do I navigate directly to a tab from another page?

[亡魂溺海] 提交于 2019-11-29 14:40:54
问题 JQuery UI tabs are implemented by named anchors in an unordered list. When you hover over one of the tabs you can see this in the link shown at the foot of the browser: http://mysite/product/3/#orders Above would be the "orders" tab for example. JQuery obviously intercepts the click to this anchor and opens the tab instead. However if I bookmark the link above or link to it from elsewhere in the site the page does not open on the specific tab. In the tab initialisation block I was considering

How do I open a tab from with jQuery UI Tabs from an link outside of the div?

笑着哭i 提交于 2019-11-29 13:32:37
问题 This may be a little difficult to explain, but I'll try my best. I have a product page with two tabs, full description and video. These are done using jQuery UI Tabs. Above this section of the page I have a product image with thumbnails...but I want one of the thumbnails to be a link to see the video (which of course is contained in the video tab). If I load the page as site.com/product#video it does load up the correct tab...but when the tab is not active, and I use a link outside of the

Refresh tab content on click in JQuery UI Tabs

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 12:19:44
问题 Content of TAB1 is loaded by ajax from remote url. When TAB1 is selected, I have to switch to TAB2 and then back to TAB1 to refresh the loaded content. How to make TAB1 refresh loaded content when click on its tab? Edit: HTML code is as below <div id="tabs"> <ul> <li><a href="url1">Tab1</a></li> <li><a href="url2">Tab2</a></li> </ul> </div> <script type="text/javascript"> $(document).ready(function(){ $tabs = $("#tabs").tabs({ select: function(event, ui) { $('a', ui.tab).click(function() { $

JQuery UI Tabs - Spinner Background Image

ぐ巨炮叔叔 提交于 2019-11-29 10:24:27
问题 All, I am using JQuery UI tabs. When a tab is clicked, I want the tab to show the tab title along with a spinner animated gif next to it. When the tab is loaded, the image should hide. How can I achieve this? Thanks 回答1: Add spinner option to tabs() $("#tabs").tabs({ spinner: '<img src="whatever.gif" />' }); Add <span> </span> within <a></a> for each tab.   is required for the spinner to properly appear and disappear. <li><a href="urlheretoajaxload">Text Title<span> </span></a></li> 回答2:

loading flot chart in jquery tab workaround doesn't completely fix the issue

老子叫甜甜 提交于 2019-11-29 08:16:20
there is known issue with loading a flot chart in a jquery tab that is not the initial visible tab here: this was asked here: http://osdir.com/ml/jQuery/2009-06/msg02284.html and answered with this solution: .tabs-hide { /*display: none;*/ position: absolute; left: -10000px; } there is still some issues with this solution. Lets say that the tab name that the flot chart is on is called #tab-1. jquery tabs put this in the URL string so this will work initially when you load up but if you try to send someone the URL with the #tab-1 (or any tab name in the URL) in the link, the chart will not be

How do I switch to a new jQuery UI tab programmatically?

人走茶凉 提交于 2019-11-29 00:57:11
I am building a "check-out" like interaction with jQuery UI tabs. This means that the click of a button on the first tab will deactivate the first tab and move to the next. I have been combing through the posts on Stack Overflow but nothing I try seems to work. I am using jQuery UI 1.8, here is the code: $(document).ready(function() { var $tabs = $('#tabs').tabs({ selected: 0 }); $tabs.tabs('option', 'selected', 0); $("#tabs").tabs({disabled: [1,2]}); $("#addstudent").click(function(){ $tabs.tabs('option', 'selected', 1); $("#tabs").tabs({disabled: [0,2]}); }); $("#confirm").click(function(){

Twitter Bootstrap iFrame usage?

大憨熊 提交于 2019-11-29 00:09:31
Just started exploring Twitter's Bootstrap and I like what I am seeing. However I have a query over how to implement Tabs that contain an iFrame. I know iFrame's are awful, but when used correctly are useful for displaying different types of data. I have experience of jQueryUI Tabs which allows me to display iFrame's inside of tabs. However I cannot find any documentation to do the same with Bootstrap. From a jQueryUI perspective I have done this in the past: <div id="tabs"> <ul> <li><a class="tabref" href="#tabs-1" rel="page1-iframe.html">Page 1 Title</a></li> <li><a class="tabref" href="