jquery-ui-tabs

JW Player: cross-browser “display:none” player behavior

血红的双手。 提交于 2019-11-30 18:09:13
问题 Is there a simple, upfront method to have FF and IE treat hidden JW Players the same? I am placing different instances of the player dynamically in jQuery generated tabs. In effect, switching tabs hides the parent div of each player. In FireFox, the tab switch and accompanying "display" change stops the player. This doesn't happen in IE. I would like it to. What is the easiest way to have both browsers act the same? I am hoping for a CSS/HTML solution, either thorough the way the players are

Getting Target URL from jQuery-UI Tabs

我们两清 提交于 2019-11-30 17:55:12
问题 I'm working on a project that makes heavy use of jQuery tabs and Ajax. Loading data into the tabs is simplicity itself, but the data in the tabs needs to be filtered by a select box that sits outside the tabs div. Here's where my problem starts. Let's say my tab makes an Ajax call to the URL "tab1.html." jQuery tabs changes this target into a hash value something like "#ui-tabs-10," but I can get the original URL through the following code: $("#tabs").tabs({ select: function(event,ui) { var

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

拟墨画扇 提交于 2019-11-30 17:10:01
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 if there's another/better way? You can query the attached widget with data() : if (!$globalTabs.data(

How to stop SWF inside of a jQuery UI tab from reloading

为君一笑 提交于 2019-11-30 17:09:44
问题 I have a SWF movie inside of a jQuery UI tab, and the problem I'm having is that the SWF gets reloaded everytime I click away from the tab onto another tab, and then click back. I can inspect the DOM and see that the div containing the SWF is still in the DOM when I click away, so I don't know why this it seems to reload it when I click back to the tab. I added the following CSS rules to try to prevent the display being set to: none, but the Flash movie is still reloading: .ui-tabs .ui-tabs

get the current tab in jQuery UI tabs

ε祈祈猫儿з 提交于 2019-11-30 11:36:06
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 () { var currentTabId = $(this).closest("ul").attr("id"); alert(currentTabId); But I just get an 'undefined'

Preload JQuery UI tabs in the background

て烟熏妆下的殇ゞ 提交于 2019-11-30 09:43:47
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 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); else $tabs.unbind('tabsload'); }).tabs('load',currentLoadingTab); It initializes the tabs with the cache

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

别来无恙 提交于 2019-11-30 09:24:18
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 putting in some code that looks for a named anchor in the URL and, if it finds one, does an index

Refresh tab content on click in JQuery UI Tabs

折月煮酒 提交于 2019-11-30 09:02:07
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() { $(ui.panel).load(this.href); return true; }); } }); }); </script> Scott Pier Another simple way to

JQuery UI Tabs - Spinner Background Image

雨燕双飞 提交于 2019-11-30 07:36:12
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 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> Firstly, I would highly recommend generating the spinner gif from http://www.ajaxload.info/ as they have some really

jQuery UI Tabs and Highcharts display/rendering issue

◇◆丶佛笑我妖孽 提交于 2019-11-30 03:22:41
Anyone ever used the tabs ( jquery-ui-1.8.9 ) and pie charts from Highcharts 2.1.4 together? To put it simply, I have multiple tabs, where each tab shows a pie chart with different data. The charts DO render to the divs, but when I click on the 2nd tab, the chart somehow shows up 300px to the right of where it's suppose to be. Whenever I zoom in or out of the browser window, the chart goes back to the correction position. My code: //Suppose the number tabs are generated based on variable $count, and there are 2 tabs <script type="text/javascript"> var chart_tab_<?=count?>; $(document).ready