Hello folks, I have two radio buttons... 1) all 2) custom
When i run the launch page... by default 'all' is selected... and when i select custon selection then iframe under it will be activated...
How can i disable the iframe when i select back the all selection and also clear the contents in the "iframe"....This message has been edited. Last edited by: Kerry,
7.7.02, sql server Windows all output (Excel, HTML, PDF)
July 21, 2010, 06:17 PM
Waz
This sounds like a javascript question.
Can you post your web page code with the buttons, and iframe ?
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
July 22, 2010, 11:06 AM
Prasad
Hello Waz,
I created a sample with two radio buttons and iframe.....
I wrote a sample java script function "123abc(ctrl)"
in the below i am able to disable the "button1" but not the "iframe'..
The search button when clicked gives the results in i frame
with disabling the iframe i am also looking to clear the values in "iframe" when the radio button "radio1_0" is checked..
7.7.02, sql server Windows all output (Excel, HTML, PDF)
July 22, 2010, 11:08 AM
Francis Mariani
Please post code between
[code]
[/code]
tags.
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
July 22, 2010, 05:56 PM
Waz
Your sample has a an erro in it.
You need to add a } after UpdateData(); and remove the } after the comment //add onInitialUpdate
As for the Iframe, it may be easier to change its display to none.
I don't think you can disable the iFrame.
I have two suggestions
1. Use the code document.getElementById("iframe1").style.display='none'/'inline'; to hide/show the iFrame. 2. communicate to the contents of the iFrame and disable the whole form.