Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Question on tab components
Go
New
Search
Notify
Tools
Reply
  
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, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
45 views, no responses. Confused
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Reply With QuoteReport 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, 2005Reply With QuoteReport 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: 103 | Registered: April 06, 2009Reply With QuoteReport 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, 2009Reply With QuoteReport 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: 103 | Registered: April 06, 2009Reply With QuoteReport 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, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

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

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.