Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Question on tab components

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Question on tab components
 Login/Join
 
Virtuoso
posted
Is there a way for a javascript function to sense which of a set of tabs (created by HTML Composer, 7.7.03) is currently selected?

I can keep track once there is a click event; but is there a simple way to sense the initial status, on load, of each tabset?
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
45 views, no responses. Confused
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
At least you catched our interest on the subject Wink Sadly nobody seems to know the answer yet ... I know I don't Frowner Sorry.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Platinum Member
posted Hide Post
jgross,

You can be doing something like -
  var tabs = document.getElementsByTagName("SPAN");
  alert(tabs.length);
  for(var i = 0; i < tabs.length; i++) {
    if(tabs[i].elementtype == "40") {
      alert(tabs[i].id+" - "+tabs[i].style.display);
    }
  }

The style.display will be giving you whether the tab content SPAN is being displayed or not and it then be the one selected.

but you will have to be making sure that the DOM has necessary content menaing the page is being fuly loaded.

Note that the first tab is not appearing to have the same sort of span?

Kofi


Client Server 8.1.05: Apache; Tomcat;Windows Server 2012
Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
 
Posts: 106 | Registered: April 06, 2009Report This Post
Master
posted Hide Post
If you want to verify this during page load, you can try assigning same html file as a DOM object and traverse down to validate the SPAN tag attribute 'selectedtab="true"'.
true says the tab is selected.
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Platinum Member
posted Hide Post
Ram,

The value for "selectedtab" is not being changed if other tab being selected. It is being used in startup only for showing default tab.

Kofi


Client Server 8.1.05: Apache; Tomcat;Windows Server 2012
Reporting Server 8.1.05; Oracle; MS SQL; Windows Server 2012
 
Posts: 106 | Registered: April 06, 2009Report This Post
Master
posted Hide Post
Hi Kofi,
Even j.gross in interested to do startup load validation.

-Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Question on tab components

Copyright © 1996-2020 Information Builders