Frames on the web. Is it a mortal combat?

Hello all the web developers!Frames kind of things we should avoid on web, but they are seemed to be easy way of layout controlling. Seemed…

I have 3 frames F1, F2, F3 in a frameset.

F2 contains search form and a Search! button. It calls @Command(RunAgent;“Search”). It’s written in LS. The ideal result is openning a view in F3, but browser keeps openning a view in F2 (the frame where the button Search is). Even if I use

Print |location:http://localhost/db/Frameset?OpenFrameSet&Frame=F3&Src=view?openview| the whole frameset is being loaded into the F2.

Please help!

Subject: frames on the web. Is it a mortal combat?

Hi Nick,

Is it a mortal combat? > I hope that not, because it would have

many

deaths!

More seriously, have you tried to set a target in your button?

For a button :

Properties > HTML tab, in Other put : TARGET=“F3” in

or, if you use an Action :

In “target frame” put F3

Thierry

Subject: RE: frames on the web. Is it a mortal combat?

Thank you Thierry! This community is then a saver! :)Yes, finally I did right that. Set a target frame for an action. Just what confused me - other HTML tags on the last tab target=“F3” does not work - results still being loaded into _self, nevetheless in source I’ve got


input type=“button” value=“search” target=“F3” name=“search” onclick="return _doClick(‘C3256FD900696285.ca3983c5bbd77a72c3256fd90071621a/$Body/0.E6’, this, null)


looking at the code generated for an action


doClick(‘C3256FD900696285.ca3983c5bbd77a72c3256fd90071621a/$V5ACTIONS/0.C4’,

this, null)" target=“F3”>


target tag is going after doClick calls.

Could this be a problem?

Richard, thank you too! I’ve done just as you recommend and voila it works. And it works even if no target frame is set for F2.

Looking deep futher I guess this could be a potential problem when the database will run on an another location. Could this be written with DB address calculation during run time?

Subject: frames on the web. Is it a mortal combat?

Firstly set frame F3 as a target for the frame F2Than replace your formula with javascript similar to:

window.open(pathtodatabase+“Search?OpenAgent”,“F3”,“Other properties [optional]”)

(see help for window open method)

As I remember, it should work