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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Onchange issue
 Login/Join
 
Gold member
posted
i have 3 radio buttons that produce different links below them according to the criteria assigned to each. I am having an issue with javascripts onchange feature. When one of the radio buttons is selected it should refresh the page with the corresponding criteria assigned to that radio button and keep the radio button checked rather then defaulting back to the first radio button. Unfortunately it is not, the function i have created is shown below. When you click any radio button it then defaults to the first radio button.

function chgBUS() {
document.tocform.IBIF_ex.value="JBTOC3";
action="/cgi-bin/ibi_cgi/ibiweb.exe";
document.tocform.target="_self";
document.tocform.submit();
}

the link then performs the following: onchange="chgBUS(this.form);"

any help would be great


WF 7.6.10 /IIS 6/ JBoss Enterprise 4.3
Windows XP SP 2/Windows 2003 Server
MVS 7.3.3
 
Posts: 76 | Location: Hartford, CT | Registered: August 30, 2005Report This Post
Gold member
posted Hide Post
The issue is that you are calling the form as a new call which will cause the defaults to be selected again. If the radio button is to remain on the same form, you will need add to the body onload some JavaScript code that will take the value of the radio button and set the new value after the page has loaded.

You may want to consider having an iframe for the form to load into, and have the radio button on the main part of the page. This way, you are only loading content into the iframe and the radio buttons would be separate from the reload process.



Windows: WF 7.6.2: SQL Server 2008 R2
 
Posts: 86 | Location: Chicago | Registered: August 03, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders