tabs

Chrome Extension: webRequest Redirect to Existing Tab, Without Opening New Tab

假如想象 提交于 2020-01-01 19:07:15
问题 When a user opens a certain page, I want to open that page in an existing tab, before a new tab is opened. I've tried with webRequest: chrome.webRequest.onBeforeRequest.addListener( function(details) { chrome.tabs.query({ url: 'https://example.com/' },function (tabs) { chrome.tabs.update(tabs[0].id, { url: details.url, highlighted: true }); }) }, {urls: ['https://example.com/']}, ['blocking'] ); I've also tried with webNavigation: chrome.webNavigation.onBeforeNavigate.addListener(function

How to open up a new tab in a pop-up?

人盡茶涼 提交于 2020-01-01 11:59:14
问题 I don't know too much about programming but somehow I managed to make a pop-up window work. However, I need that from inside the new window (the pop-up one) a button on the pop-up will open a new tab. But I don't need the new tab open in the main browser, I want it open in the same pop-up. Is this possible? How can I do it? I show both the pop-up code and the redirection code that is, at present, sending people to another tab in my web browser, but I need to do it in the same pop-up window

How to go other Tabs by clicking on a Button from the current Tab in Android?

北战南征 提交于 2020-01-01 09:34:12
问题 I trying to write a code in Android, to switch from one tab to another tab by click on a button. I know to by clicking on tab we can switch from one tab to another but can it be possible to switch from one tab to another tab by clicking on one button. I tried the following tutorial. http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ In this tutorial i have edited the MovieFragment.java file in following manner. MovieFragment.java package info.androidhive.tabsswipe;

AngularJS controller for a tab

不羁岁月 提交于 2020-01-01 09:33:31
问题 I have three tabs in my page. I'm using tabset and tab according to Angular Bootstrap Docs. I set a controller for the <div> which has the tabset as <div ng-controller="Tabs" class="panel panel-default" id="tabs-panel"> <tabset class="panel-body"> <tab heading="Tab 1"> </tab> <tab heading="Tab 2"> </tab> <tab heading="Tab 3"> </tab> </tabset> </div> The corresponding page is But, when I try to add another controller for my 2nd tab as <div ng-controller="Tabs" class="panel panel-default" id=

Android ActionBar backbutton and tabs

可紊 提交于 2020-01-01 08:57:15
问题 I want to create an ActionBar and a tabbed navigation like the google+ app. I used this example as a starting point and now I have a great actionbar: http://developer.android.com/resources/samples/ActionBarCompat/index.html I've also included a ViewPager and a TabHost to have tabs and scrolling left/right Fragments. What i need is to show the back arrow in version prior to honeycomb. If I set getActionBar().setDisplayHomeAsUpEnabled(true) , the arrow is automatically show in version >=

count the number of existing tabs in jquery?

只愿长相守 提交于 2020-01-01 08:11:54
问题 I'm using a dynamic jQuery tab widget to add/remove tabs generated programmatically. How do I check through jQuery and count how many existing tabs are present in the widget? I'm using this code, but it doesn't work: $('#container-1 > ul').tabs('add', tabName, name); var newTab; if ($('#container-1 > li').size() < 0) { newTab = $(tabName).css('display', 'block') } else { newTab = $(tabName).css('display', 'none'); } newTab.html('<iframe src="ViewPatient.aspx?pname=' + name + '" width="100%"

count the number of existing tabs in jquery?

给你一囗甜甜゛ 提交于 2020-01-01 08:11:12
问题 I'm using a dynamic jQuery tab widget to add/remove tabs generated programmatically. How do I check through jQuery and count how many existing tabs are present in the widget? I'm using this code, but it doesn't work: $('#container-1 > ul').tabs('add', tabName, name); var newTab; if ($('#container-1 > li').size() < 0) { newTab = $(tabName).css('display', 'block') } else { newTab = $(tabName).css('display', 'none'); } newTab.html('<iframe src="ViewPatient.aspx?pname=' + name + '" width="100%"

How to show unread notification counter on Tabs inside TabLayout?

不想你离开。 提交于 2020-01-01 05:33:08
问题 I am using TabLayout of android support design library. I want to show unread notification counter on the tab with title like below image. How to set unread count on Tab inside TabLayout ? 回答1: Use public TabLayout.Tab setCustomView (int layoutResId) Create a Layout with TextView and Button use this in Custom view. For reference setCustomView Example Hope this will helpful to you. 回答2: Take a look at android-viewbadger... 来源: https://stackoverflow.com/questions/32269517/how-to-show-unread

how to add and remove jquery tabs dynamically?

夙愿已清 提交于 2020-01-01 04:16:13
问题 I have an aspx page on which I have 2 static jquery tabs.Upon clicking on a button avaiable on one of these tabs,I would like to add a new tab dynamically,which gets its content loaded from another aspx page.I've also tried with the following sample http://jquery-ui.googlecode.com/svn/trunk/demos/tabs/manipulation.html I've downloaded jquery-ui-1.8rc3.custom zip file and tried to add the above page with the relevant script,css files to my asp.net website and run,but it does not seem to work

Implementing ActionBar tabs with v4 Fragments API

六月ゝ 毕业季﹏ 提交于 2020-01-01 01:13:14
问题 My app is currently using the Fragments/v4 compatibility package to support Android versions all the way down to 1.6. This means all my Fragments inherit from the compatibility package's version of Fragment . I'm currently trying to rework parts of the app to take advantage of Honeycomb features, like ActionBar . I already use my own action-bar-like implementation on pre-3.0 devices, and the Honeycomb Action Bar otherwise. This bit isn't an issue. The problem I have is trying to implement