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] Show/Hide a Textbox in HTML

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Show/Hide a Textbox in HTML
 Login/Join
 
Gold member
posted
is there a way when a button-1 is clicked I can show a text box and when button-2 is clicked I can hide the text box in html painter?
Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


8.0.9, Windows
excel / pdf
 
Posts: 89 | Registered: October 21, 2010Report This Post
Guru
posted Hide Post
Is this what you expected?

function window_onload() {

UpdateData();

// TODO: Add your event handler code here
//add onInitialUpdate() function to make changes before initial run of the reports
}
//End function window_onload

//Begin function button1_onclick
function button1_onclick(ctrl) {
alert ("button1 clicked");
document.getElementById('edit1').style.visibility = 'hidden';
}
function button2_onclick(ctrl) {
alert ("button2clicked");
document.getElementById('edit1').style.visibility = 'visible';
}
 

.
.
.
INPUT style="Z-INDEX: 1; POSITION: absolute; WIDTH: 140px; HEIGHT: 60px; TOP: 290px; LEFT: 230px" id=button1 language=javascript tabIndex=1 onclick=button1_onclick(this); value=Button type=button persistentuniqueid="compUid_2" defaultselection="1" name="button1"> 
<INPUT style="Z-INDEX: 2; POSITION: absolute; WIDTH: 150px; HEIGHT: 60px; TOP: 290px; LEFT: 420px" id=button2 language=javascript tabIndex=2 onclick=button2_onclick(this); value=Button type=button persistentuniqueid="compUid_3" defaultselection="1" name="button2"> 


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Guru
posted Hide Post
IBI would prefer that you use their functions


 
function button1_onclick(ctrl) {

      IbComposer_showHtmlElement('textbox', false);    

     }

 


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Expert
posted Hide Post
Unfortunately, there are no "API" commands in WF v7.6.

This is the only mention of JavaScript in the v7.6.9 doc:

quote:
Using JavaScript Code With HTML Composer Pages

Although the HTML Composer is fully integrated with JavaScript, it is suggested that you do
not create custom JavaScript that manipulates the HTML Composer generated controls, as
WebFOCUS cannot support such custom JavaScript code. Additionally, there is no guarantee
that the JavaScript code will work correctly in future releases.


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
Gold member
posted Hide Post
Thanks Rifaz - your solution worked perfectly..!!!


8.0.9, Windows
excel / pdf
 
Posts: 89 | Registered: October 21, 2010Report 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] Show/Hide a Textbox in HTML

Copyright © 1996-2020 Information Builders