jquery-ui-tabs

Implementing dirty indicator for 3 different divs within an ASP.NET page

非 Y 不嫁゛ 提交于 2020-01-03 02:26:11
问题 I have an ASP.NET page that has three div s within the only form which renders as three jQuery ui tabs. All the three tabs have input s and/or select s that gets submitted to separate web methods. On tab one there are two input s of type submit , that redirects after committing the form to another page. Simultaneous edits are possible on all the three tabs, and therefore there is a need to implement some kind of form-dirty (section-dirty rather) indicators on the form. The user needs to be

get the tab text on select jquery ui tabs

跟風遠走 提交于 2020-01-02 02:11:04
问题 I m using jquery ui tabs I can get the index of the selected tab on "load" (ajax) event $('#tabs').tabs( { load: function(e, ui) { if($('#tabs').tabs('option','selected') == 0) { } } }); Now i want to get the tab name for eg... <ul> <li><a href="newprofile.jsp"><span>Profile</span></a></li> <li><a href="ashout.jsp" id="friends"><span>Shouts</span></a></li> </ul> I want to retrieve the text Profile when first tab is clicked or Shout when second tab is clicked. Thanks 回答1: You can use the ui

Set active tab by clicking a link thats outside of the tabs?

狂风中的少年 提交于 2020-01-01 16:42:08
问题 Im using the jQuery UI Tabs: http://api.jqueryui.com/tabs/ How can I make a link on my page thats outside of the tabs, when clicked make a certain tab active? Thanks 回答1: See http://api.jqueryui.com/tabs/#option-active To get current active tab index: var currentActive = $( ".selector" ).tabs( "option", "active" ); To set current active tab: $( ".selector" ).tabs( "option", "active", <number of tab> ); For example: $('a').click(function(){ $( ".tabs" ).tabs( "option", "active", 2 ); }); 回答2:

jquery ui tabs major style change

橙三吉。 提交于 2019-12-30 06:26:07
问题 I am using jquery UI tabs and I need to majorly change the styling on it. I need to rempve the background image, the borders, almost everything. I need it to look minimal, and not like it's self contained. What's the best way to do this? I need to use the default UI styling for the calendar widget however, which is on the same page. I've done a lot of research and everyone seems to point to the theme-roller. However, i do not just want to change the colors and border radii. I need to delete

Twitter Bootstrap iFrame usage?

核能气质少年 提交于 2019-12-29 04:50:12
问题 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

Preventing scroll when using URI hash to identify tab

房东的猫 提交于 2019-12-29 01:32:17
问题 I'm using JQuery UI to make tabs in my application. I needed the tabs to be linkable (direct link that opens the page and selects the correct tab). This is done by using a hash tag/fragmented identifier. But I have a issue when the content above the tabs and inside the tabs is very long. When clicking the tabs, the page scrolls down to the start of the tab. This is not what I want. I'm using Jquery 1.7.1 and Jquery UI 1.8.16. The javascript/Jquery code is a standard Jquery UI tabs with the

How to drag and drop multiple elements between different tabs

£可爱£侵袭症+ 提交于 2019-12-28 19:22:12
问题 I am trying to drag and drop multiple elements between different tabs. in this jsfiddle, When an item is being dragged, i want to drag all other checked items along with it, like Gmail does when you move several email from inbox to another folder. I think it is necessary to use ui.helper but i don't have enough skill in query. following is the code i'm currently working with: $( "#sortable1, #sortable2" ).sortable().disableSelection(); var $tabs = $( "#tabs" ).tabs(); var $tab_items = $( "ul

How to drag and drop multiple elements between different tabs

那年仲夏 提交于 2019-12-28 19:22:10
问题 I am trying to drag and drop multiple elements between different tabs. in this jsfiddle, When an item is being dragged, i want to drag all other checked items along with it, like Gmail does when you move several email from inbox to another folder. I think it is necessary to use ui.helper but i don't have enough skill in query. following is the code i'm currently working with: $( "#sortable1, #sortable2" ).sortable().disableSelection(); var $tabs = $( "#tabs" ).tabs(); var $tab_items = $( "ul

Unobtrusive validation not working on jquery tabs using partial view

房东的猫 提交于 2019-12-25 12:51:26
问题 I'm using jquery-ui tabs to display partial views. I have a view that contains the tabs definition: <ul> <li><a href="@Url.Action("CreateTab","Catalogue")">Create</a></li> ... And a controller method CreateTab which returns a PartialView: public ActionResult CreateTab() { var model = new StockCatalogueItemViewModel { ... populate some selectlists } return PartialView(model); The model property that I'm validating has datatannotations on and I can see that the validation tags have been

How to make “jQuery UI tab” blink/ flash

旧城冷巷雨未停 提交于 2019-12-25 08:24:58
问题 I want to make "jQuery UI TAB" blink (like notification). I have diffrent tabs (Inbox | Sent | Important). My timer function checks if there is a new message in inbox, if so, I want the Inbox tab to start blinking/ flashing unless its clicked open. Have tried diffrent options like .effect(..), .tabs(fx: {..}) but nothing seems to work :( Any idea if its possible or not? 回答1: Yes it's definitely possible. To give me some practice, I've written a jQuery blinker plugin for you: jQuery: (function