Focal Point
[CLOSED] Clearing the data on frame in HTML form

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6017045995

March 01, 2011, 01:15 PM
Sanjeev
[CLOSED] Clearing the data on frame in HTML form
Is there a HTML code to clear data on FRAME in an HTML form on change of value of a Combo box?

Please help me.

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


WebFOCUS 7.6
Windows, All Outputs
March 01, 2011, 03:52 PM
Waz
You can only do what HTML / Javascript will let you do.

For example.

You can change the location of the Frame.
If the contents of the fram are in the same webserver, you can access the page in the frame.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

March 02, 2011, 02:37 AM
GamP
You can set the src of the frame to something like an empty html file. That's the way I do it.
The javascript I use is (assuming the name of the frame is 'graph1'):
window.top.frames.graph1.location.href = '/approot/folder/empty.htm';


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
March 02, 2011, 08:19 AM
MAdams1
If it helps, this is the code I use to clear an HTML frame. You would just put it in the on_change event of your combobox.

window.top.frames.report1.location.href='about:blank';



WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML