I'm creating this page (http://www.50allstars.com/2018/05/test-menu.html) and would like to be able to directly link to a particular tab if need be. I've found a site (https://css-tricks.com/better-linkable-tabs/) that says a way for this to be done, but I'm not sure how to implement it or if there's a more simple & elegant solution out there. (https://css-tricks.com/examples/OrganicTabsReplaceState/?tab=jquerytuts2) Any help would be greatly appreciated. Thanks!

Member Avatar
Member Avatar
+0 forum 2

Hello Daniweb Community, I was wondering if there is a way to reset a tabcontrol. What I'm wanting to do is have it so when the user will click New it will reset all the tabpages to the way they were when they started the program up. I tried this TabControl1.TabPages.Clear() TabControl1.TabPages.AddRange({TabPage1, TabPage2, TabPage3, TabPage4}) But all it does it remove the pages then re-add them with all the data still there.

Member Avatar
Member Avatar
+0 forum 3

Hello guys, I have a doubt regarding the tabs I have in my project. Its a user view page with multiple tabs in it. Each tab is having details like user basic info, social profile info, skills etc. The current setup is PHP tabs with $_GET['tab'] value. There are different $_GET['tab'] for each tabs and the if condition checks the $_GET['tab'] variable and loads the content of include file in that tab. There are about 10 tabs and 10 if conditions in this page. The page itself is having other include files like header, footer, side menu etc. Me and …

Member Avatar
Member Avatar
+0 forum 10

I have problems cleaning up a couple of input field. I've been pecking away at this issue since I wrote the application about 18 months ago. When I think I have it cleaned up; it pops up again, when users violate rules (as they often will do) and the extra spaces and tabs show up. I have a form that is filled via Copy from an excel file (this is a requirement) and pasted into the textarea: <textarea name="header_fields" cols="60" rows="6"><?php if(!empty($error)) {echo $varAllText;} ?></textarea> When the form is processed, the field is received via the following: $varAllText = trim($_POST['header_fields']); …

Member Avatar
Member Avatar
+0 forum 1

Hi! I'm usually on Firefox, windows 7 64 bit, fujitsu lifebook, run adblocker on FF and I get these weird tabs that just open right in front of my eyes sometimes that say "hope", "patience" etc. and have a kind of colored border, nothing on the tab, just the tab title. This is really starting to piss me off. I figured it was just some millenial adding a "Zen" approach to FF but I want to bazooka it outta my computer. I use BitDefender, run Malware Bytes full scan regularly and run microsoft malicious removal tool. I can't find this …

Member Avatar
Member Avatar
+0 forum 7

Hello, I am trying to add a 2nd tab area to the jquery tabs, I want the new content area to appear before the tabs then the 2nd content to appear. My plan is to have images appear before, and both be controlled by the tabs. <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Tabs - Default functionality</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css"> <script> $(function() { $( "#tabs" ).tabs(); }); </script> </head> <body> <div id="tabs"> <div id="tabs-1"> <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am using jquery tabs for displaying data.And while displaying the data in the tabs I have to use ajax again to display data. The data in the first tab is giving the desired result. But when I click on the second tab. The tab is loaded correctly. But When I use the ajax. The ajax is not working correctly. Here is my code. <script> $(function() { $( "#tabs" ).tabs({ beforeLoad: function( event, ui ) { ui.jqXHR.error(function() { ui.panel.html( "Couldn't load this tab. We'll try to fix this as soon as possible. " ); }); } }); }); </script> …

Member Avatar
Member Avatar
+0 forum 1

Hey all, I'm trying to make a link outside of the nav-tabs class, specifically in a paragraph, that changes to another tab on the same page. Granted that I know this requires JS and that I know nothing of JS (Another book i ordered this morning :) ) here is what I've tried (with partial success): My link: `<a class='tab-switch' href='#tab_1_3' data-toggle='tab'>biography</a>` My JS: $('.tab-switch a').on('click', function (e) { e.preventDefault(); $(this).tab('show'); }); }); What currently happens: When the link is clicked the CONTENT of the tab changes (woop!) but the tab NAV <li> doesn't change. So I'm seeing the right …

Member Avatar
Member Avatar
+0 forum 2

Can anyone help me? I'm trying to gat my reservation calendar working with jquery tabs. Everything else works exept for this reservation calendar. When I remove the javascript from the header, the calendar works just fine but the tabs disappears... Can anyone please help...? <div class="reservationbox"> <div class="reservation_calendar" id="reservation_calendars"></div> <div class="clr clear"></div> <div class="cal_buttons"> <img class="mousepointer" onclick="javascript:setPreviousCalDate();" src="<?php echo $this->krbaseurl; ?>/components/com_koparent/assets/images/calendar/cal_previous.png" title="<?php echo JText::_( 'COM_KOPARENT_PREVIOUS'); ?>" /> <img class="mousepointer" onclick="javascript:setNextCalDate();" src="<?php echo $this->krbaseurl; ?>/components/com_koparent/assets/images/calendar/cal_next.png" title="<?php echo JText::_( 'COM_KOPARENT_NEXT'); ?>" /> </div> </div>

Member Avatar
Member Avatar
+0 forum 1

I've been having trouble with just the map area and the calendar piece of my website. But more focused on the map piece. The map does not want to load properly or won't load at all in the second tab of my jquery tabs. I need help, I think I may be missing just a small part of the code but here's the script. Please help me... <script> $(function() { $( "#tabs1, #tabs2" ).tabs( { show: function(event, ui){ // check if is "mappanel" and "map" is empty if (ui.panel.id == 'mappanel' && $('#map').is(':empty')) { // load map var myOptions = …

Member Avatar
Member Avatar
+0 forum 2

**Hi forum, I've got a question for the pros. I am making a program that has map<String, String> map = new TreeMap<String, String>(); and a Scanner to read a file contains some data which is assigned to map.put(); method. The data is something like this: UK USA Canada Australia etc. The country names are separated with a "tab". All the data is on one line of a text file. I just want that when I print the country names and when system prints the data up to 5 tabs it will start a new line and then print the other …

Member Avatar
Member Avatar
+0 forum 6

I have the following script: $(function () { var tabContainers = $('div.tabs > div'); tabContainers.hide().filter(':first').show(); $(window).bind('hashchange', function () { var hash = window.location.hash || '[b][b]#[/b][/b]first'; tabContainers.hide(); tabContainers.filter(hash).show(); $('div.tabs ul.tabNavigation a').removeClass('selected'); $('a[hash=' + hash + ']').addClass('selected'); }); $(window).trigger( "hashchange" ); }); <div class="tabs"> <ul class="tabNavigation"> <a href="#first" class="selected">First</a> <a href="#second" class="">Second</a> <a href="#third" class="">Third</a> </ul> <div id="first" style="display: block;"> <h2>First</h2> </div> <div id="second" style="display: none;"> <h2>Second</h2> </div> <div id="third" style="display: none;"> <h2>Third</h2> </div> </div> How do i replace [b]#[/b] with [b]?[/b], so that it would be http://site.com/?first

Member Avatar
Member Avatar
+0 forum 3

Hi! So I have two "tabs" implemented using radio buttons as shown in the code (visibility is controled by CSS). There is one control in each tab contained in the div. I hope the code is clear enough. Now, I am inside a javascript function where I have the control id (say "txtArea") and I need to find its parent tabid. Is there a way to trace the tabid (I mean the radio id) from the control id? As I see it they don't have any direct or indirect relationship as per DOM structure but there is a link - …

Member Avatar
Member Avatar
+0 forum 4

I have a jQuery tabs slider that auto rotates and depending on the slide it will adjust the background of the `<div>` element it is in. Auto rotate goes fine, the correct background is loaded, but when I manually click the tabs, it doesn't take the correct values. It's almost like it's 1 behind. Below is the HTML code <div id="featured"> <ul class="ui-tabs-nav"> <li class="ui-tabs-nav-item"> <a href="#fragment-1" id="active-1" class=""><span style="background-color: #94d1e3; background-image: url(uploads/tx_background_img/banner_bg2.jpg); display:none;"></span><span>Test</span></a> </li> <li class="ui-tabs-nav-item ui-tabs-selected"> <a href="#fragment-2" id="active-2" class=""><span style="background-color: #e6c8a6; background-image: url(uploads/tx_background_img/banner_bg.png); display:none;"></span><span>Test1</span></a> </li> <li class="ui-tabs-nav-item"> <a href="#fragment-3" id="active-3" class=""><span style="background-color: #94d1e3; background-image: url(uploads/tx_background_img/banner_bg2_01.jpg); display:none;"></span><span>Test2</span></a> </li> …

Member Avatar
Member Avatar
+0 forum 6

Hi, I have a suggestion. When i was browsing the forums i came across some interesting threads (i didnt contribute anything to them)...so i saved those pages...my suggestion is why cant there be another tab "my favorites" or something like that along with recently updated articles etc...so that i can mark any thread as my favorite and whenever i login i can see them, check the updates etc., what do you think ? :) marcus

Member Avatar
Member Avatar
+0 forum 2

Hello all, Recently, I began learning JS to start creating websites. So far I have a working idea of what the DOM is & how to access elements within a document. I've also heard how jQuery & jQuery UI can increase functionality/productivity/interactivity & just about any other "ity" word you can think of. So, now I'm experimenting with these two libraries by trying to create tabs. From the docs I've read it appears that my code agrees with everything as explained. The problem I'm having seems more technical than conceptual. **I can't get the tabs to display in the page. …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am in the middles of developing a new application and i am wanting something a little different to the windows tab interface, although i am wanting to keep the tab container functionality. I want to have images as well instead of text on the tab headers, i have done this successfully with the tabControl and imageList however it looks really rough and not that appealing. I am wanting to recreate something similar to the gui of CCleaner, the tabs on the left with containers for each. I have tried setting it up with buttons and panels but it …

Member Avatar
Member Avatar
+0 forum 1

Hello, I am building a web browser with tab control using VB 2010. I have everything working good so now I want to have it save the browser tabs when I shut down the browser and have them re-opened when I run the browser again like Chrome or Firefox would do. Thanks in advance for your replies.

Member Avatar
Member Avatar
+0 forum 5

I want to ask regarding ajax tab container. the scenario would be. the user must complete first a specific requirements that is need to fill up. and when it is now filled up. by clicking the next button. a next tab container would appear next to it and the next button will not not be activated unless all are filled up. this is for a portal. thanks!

Member Avatar
+0 forum 0

Hi, I keep getting the error Traceback (most recent call last): File "<string>", line 11, in <fragment> builtins.TabError: inconsistent use of tabs and spaces in indentation (<wingdb_compile>, line 11) With the lines being [CODE] for line in datafile: pricedata = line.split(",") newdata[pricedata[0]] = pricedata[6][/CODE] I have taken out and put back the indents (tabs) for these lines several times already and still get the same error. I have tried two different IDEs (Wing and Idle) Does anyone have suggestions on what I could be missing The full code is below. [CODE]import os pricedata = [] newdata = {} # sets …

Member Avatar
Member Avatar
+0 forum 3

you can do this dim i as integer = 0 Public Sub Addtab() Dim browser As New webbrowser browser.Dock = DockStyle.Fill 'docking it browser.ContextMenuStrip = main.cms 'adding a context menustip to it Dim tab As New TabPage tab.Controls.Add(browser) main.Tabs.TabPages.Add(tab) 'IMPORTANT you must select the tab main.Tabs.Select(i) i += 1 End Sub well you don't just have to add browsers, you can do this dim i as integer = 0 public sub addtab() dim yourvariable as system.windows.forms.object 'name your variable and tell it your object yourvariable.dock = dockstyle.fill 'everything has a dock yourvariable.name = "yourname" 'everything has a name 'this way …

Member Avatar
+0 forum 0

The End.