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] Hide Webfocus calendar image in Webfocus 8.1

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Hide Webfocus calendar image in Webfocus 8.1
 Login/Join
 
Gold member
posted
Hello,

I tried hiding the Webfocus calendar icon by using the code below.
//get all images on the page into array
var images=document.getElementsByTagName("img");
//get the number of images in array
var numImages = images.length;
//Loop through images and see if it is a dynCalendar
for (i=0;iif (images[i].src.indexOf("dynCalendar.gif")>0)
{
//If it is, hide
images[i].style.visibility='hidden';
}
}

For some reason this code does not work. also if try seeing the source code the it is no more dynCalendar.gif but it is dynCalendar.png. I tried this option also but it does not work.
Kindly let me know if anyone was able to solve the issue.

Thank you,
Prajakta

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


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Gold member
posted Hide Post
Hello,

You can always use Jquery.
  
Hide all images
$("img").hide();

With image class name:
$('.img_class').hide();

With image Id :
$('#img_id').hide();


Are you still on V7.6?

All the best!!


WF 8.2.04
Windows/Unix
All Formats
In Focus since 2006
 
Posts: 74 | Location: UK | Registered: September 17, 2018Report This Post
Gold member
posted Hide Post
Hello Addy,

Thank you for the reply!
I am using version 8.1.0.5.
I do not want to hide all the images. The code worked for me. The tabindex for the dyncalendar.gif was "-1" and hence that was not working.

Thank you,
Prajakta


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Virtuoso
posted Hide Post
Try with this
// This funstion is to hide the Calandar icon which is not hidding when hide control
function hideCalendarIcon() {
  //get all images on the page into array
  images=document.getElementsByTagName("img");
  //get the number of images in array
  numImages = images.length;

  //Loop through images and see if it is a dynCalendar
  for (i=0;i<numImages;++i) {
     if (images[i].src.indexOf("dynCalendar.png")>0){
       //If it is, hide
       images[i].style.visibility='hidden';
     }
  }
}

// This funstion is to show the Calandar icon
function showCalendarIcon() {
  //get all images on the page into array
  images=document.getElementsByTagName("img");
  //get the number of images in array
  numImages = images.length;
	
  //Loop through images and see if it is a dynCalendar
  for (i=0;i<numImages;++i) {
    if (images[i].src.indexOf("dynCalendar.png")>0){
      //If it is, show
      images[i].style.visibility='visible';
    }
  }
}


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
Thank you Martin!


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report This Post
Virtuoso
posted Hide Post
Has it fixed your issue ?
If so, my pleasure and please update your first post then add [SOLVED] at the beginning of the subject.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
done Martin!


Webfocus 8.1.0.5
Windows, all output
 
Posts: 56 | Registered: February 16, 2011Report 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] Hide Webfocus calendar image in Webfocus 8.1

Copyright © 1996-2020 Information Builders