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     [SOLVED] JQUERY with anchors

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] JQUERY with anchors
 Login/Join
 
Guru
posted
I am completely new at using jquery so please bare with me. I have to replace some javascript with jquery due to the javascript not working in IE 11 and for the most part I have it working except for hiding an anchor.


<a name="SubTotalLink" style="TOP: 51px; LEFT: &SubTotalLinkLeft.EVAL; HEIGHT: 16px; WIDTH: 100px; POSITION: absolute; VISIBILITY: &SummaryVisible.EVAL; &Frame1Font.EVAL COLOR: blue; Z-INDEX: 103;" onmouseover="this.style.cursor ='hand'"><u>&SummaryViewText.EVAL</u></a>
  


 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
 <script>
   $(document).ready(function(){
     $("#FilterButton").click(function(){
       $("#LocateDropText").hide();
       $("#comboboxLoc").hide();
       $("#LocateValDropText").hide();
       $("#comboboxLoc4Val").hide();
       $("#comboboxLoc5Val").hide();
       $("#comboboxLoc6Val").hide();
       $("#comboboxLocStVal").hide();
       $("#AllViewText").hide();
       $("#comboboxAll").hide();
       $("#FilterText").hide();
       $("#FilterValText").hide();
       $("#FilterButton").hide();

    if ( $('#SubTotalLink').css('visibility') == 'visible' )
       $('#SubTotalLink').css('visibility','none');
    else
       $('#SubTotalLink').css('visibility','visible');

    if ( $('#FilterAttribDrop').css('visibility') == 'hidden' )
       $('#FilterAttribDrop').css('visibility','visible');
    else
       $('#FilterAttribDrop').css('visibility','hidden');

    if ( $('#FilterSelText').css('visibility') == 'hidden' )
       $('#FilterSelText').css('visibility','visible');
    else
       $('#FilterSelText').css('visibility','hidden');

    if ( $('#ApplyFilterButton').css('visibility') == 'hidden' )
       $('#ApplyFilterButton').css('visibility','visible');
    else
       $('#ApplyFilterButton').css('visibility','hidden');

    if ( $('#ClearFilterButton').css('visibility') == 'hidden' )
       $('#ClearFilterButton').css('visibility','visible');
    else
       $('#ClearFilterButton').css('visibility','hidden');

});
});
</script>
 <script> 



This works except for my SubTotalLink

     if ( $('#SubTotalLink').css('visibility') == 'visible' )
       $('#SubTotalLink').css('visibility','none');
    else
       $('#SubTotalLink').css('visibility','visible'); 



The only thing I can think of is in CSS I am using an &Variable for visibility, but I know that the value is 'visible'

Any suggestions?




This message has been edited. Last edited by: MattC,


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
The "#" selector in JQuery is for the ID attribute of the control - which you do not have, you only have a "name" attribute.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Guru
posted Hide Post
Go after it by name? Does this look correct?

    if ( $('[name=SubTotalLink]').css('visibility') == 'visible' )
       $('[name=SubTotalLink]').css('visibility','none');
    else
       $('[name=SubTotalLink]').css('visibility','visible');  


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Guru
posted Hide Post
Thanks Tony -

I couldn't reference the name, so I just removed the name out of the anchor and set it as an ID.

Seems to be bahving as expected.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
MattC, to use name or any other attribute, including (IBI) custom attributes, you must put the name in quotes. Here's an example where I'm removing all the TD elements of a row that has an IBI custom attribute ibiattr with a value of 'by_1' in an accordion report:

$("td", "[ibiattr='by_1']").remove(); 


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Thanks Francis - I will give that a try.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report 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     [SOLVED] JQUERY with anchors

Copyright © 1996-2020 Information Builders