jquery-tabs

How to use jQuery UI Tabs inside one jQuery UI Tab?

冷暖自知 提交于 2019-12-24 12:39:26
问题 i am using jQuery UI Tabs (Content via AJAX) what i need to do is that in one of my Tab i want other simple jQuery UI Tabs means (Content NOT via AJAX) but its not working.. pardon if i am doing something wrong :( <div id="tabs"> //these tabs are working fine <ul> <li><a href="<?php echo $this->url(array(), 'abc') ?>">A</a></li> <li><a href="<?php echo $this->url(array(), 'asd') ?>">B</a></li> <li><a href="<?php echo $this->url(array(), 'xyz') ?>">C</a></li> </ul> I have add the below code in

jQuery Masonry not working with jQuery tabs

纵饮孤独 提交于 2019-12-24 07:46:41
问题 I have a tabbed element on a website, and in each tab the jQuery Masonry script is used. The only problem is that the Masonry grid will only work for the content in the first tab, but I need it to work for the content in every tab. I have tried renaming the containers for each tab, but nothing seems to work. Here is the website: http://joltentertainment.com/services-2/ Here is my code: <ul class="services-tabs"> <li><a href="#tab1">Entertainment</a></li> <li><a href="#tab2">Ambiance & Décor<

How to use create Jquery Confirm Dialog before switching tabs

断了今生、忘了曾经 提交于 2019-12-24 06:44:41
问题 I am using jQuery 1.9+ I tried to popup a Jquery dialog modal to allow users to confirm before switching tabs. I tried following codes: $('#tabs').tabs({ beforeActivate: function(event, ui) { $('<div> Confirm Switching Tab </div>').dialog({ modal: true, title: "Confirm Action", buttons: { Yes: function(){ $(this).dialog('close'); return true; }, No: function(){ $(this).dialog('close'); return false; } } }); } }) The code above did popup the confirm dialog, however it still open the tab

Passing variable via ajax with Jquery Tabs

 ̄綄美尐妖づ 提交于 2019-12-24 01:23:56
问题 I am having a problem that I've been stuck on for days, and I just cant seem to figure it out. I'm trying to pass a variable through AJAX using Jquery Tabs. Here is my use scenario: User loads page with JQuery tabs, default just being some text. On the page, I have a session variable containing there userid. When they click the 2nd tab, it passes that userid variable to the script. I can't get it to pass! <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script> <script type="text

Detect which tab was clicked with jQuery

别等时光非礼了梦想. 提交于 2019-12-24 00:56:05
问题 I have some tabs: <ul id="tabs"> <li><a href="#tab-allData">All data</a></li> <li><a href="#tab-someOtherData">Some other data</a></li> <li><a href="#tab-xyData">xyData</a></li> </ul> I want to recognize which tab was clicked and remove the tab- prefix from the href . I have tried this js function: $('#tabs').click(function (event) { activeTab = $(this).attr('href').split('-')[1]; FurtherProcessing(activeTab); }); but I get the following error: TypeError: $(...).attr(...) is undefined

jQuery tabs - multiple sets on on page

爱⌒轻易说出口 提交于 2019-12-23 02:32:13
问题 This is kind of a follow on from a previous question I posted but I've not been able to get it to work.. I'm trying to use multiple sets of tabs (jQuery) on one page. This is the code I had for one set of tabs which works great: $('div.tabs div.tab').hide(); $('div.tabs div:first').show(); $('div.tabs ul.htabs li:first a').addClass('current'); $('div.tabs ul.htabs li a').click(function(){ $('div.tabs ul.htabs li a').removeClass('current'); $(this).addClass('current'); var currentTab = $(this)

jQuery tabs - multiple sets on on page

馋奶兔 提交于 2019-12-23 02:31:59
问题 This is kind of a follow on from a previous question I posted but I've not been able to get it to work.. I'm trying to use multiple sets of tabs (jQuery) on one page. This is the code I had for one set of tabs which works great: $('div.tabs div.tab').hide(); $('div.tabs div:first').show(); $('div.tabs ul.htabs li:first a').addClass('current'); $('div.tabs ul.htabs li a').click(function(){ $('div.tabs ul.htabs li a').removeClass('current'); $(this).addClass('current'); var currentTab = $(this)

jQuery load page only once on tab click

扶醉桌前 提交于 2019-12-23 01:36:51
问题 I have a page with some tabs on it and upon clicking on certain tabs, other pages are loaded dynamically. The only problem is that these pages load every time the tabs are clicked on. How do I make them load only once, at the first click? The code that I use is this: $(document).ready(function(){ $(".tab-content").hide(); $("#one").show(); $("a.tab-name").click(function(){ $(".tab-name-active").removeClass("tab-name-active"); $(this).addClass("tab-name-active"); $(".tab-content").fadeOut();

Highstocks graph width not correctly rendered

陌路散爱 提交于 2019-12-22 04:16:19
问题 Hello I have a problem with highstocks when using jquery tabs. this is the code for the constructor. Chart = new Highcharts.StockChart({ Chart = new Highcharts.StockChart({ chart: { renderTo: 'Container', alignticks:false }, xAxis: { .......... }, yAxis: [{ ....... }], series : [{ .......... }] }); The Container has only half the width of the whole page. When the page is loaded to the tab containing the graph, then its width is rendered correctly. But when the page is loaded first to another

How to add the id to dynamically created jquery tab

谁都会走 提交于 2019-12-20 07:17:30
问题 I am creating dynamically jQuery tabs. I want to assign the id to each tab. $("#addTab").live('click', function() { index++; var title = 'Tab..... ' + index; var url = '#fragment-' + index; addTab(url, title, index); $('li[class=ui-state-default]').id(this)=1; // this line to add id }); but id is not assigning to the tab.. JS Fiddle 回答1: $('li.ui-state-default:last').attr('id', 'some_' + index); // only Numeric id not allowed DEMO NOTE: $('li.ui-state-default').attr('id', 'some_' + index);