Opening 2 frames at once

I have a frameset with 2 frames. I have a hotspot link, and a button in 1 frame(can use both), is there a way that when I click on the link or the button I change the pages in both the frames.

I have used the formula:

@SetTargetFrame(“frmstMain”);

@Command([OpenPage]; “blank”;

@SetTargetFrame(“frmstOptions”);

@Command([OpenPage]; “MainOption”)

This changes the frameset Main to the page blank, and the frameset Options to contain the page MainOption.

This doesn’t work, but if you took out the firdst half OR the second hal (so you are just changing the one frame) then it works, any ideas people?

Subject: Opening 2 frames at once

Do the first part, then put the second part in the query open of the page. This way, you’ll load up the first part in the frame, and the second part will be loaded by the page itself:

Put this behind the button:

@SetTargetFrame(“frmstMain”); @Command([OpenPage]; “blank”)

Put this in the query open of the blank page:

@SetTargetFrame(“frmstOptions”); @Command([OpenPage]; “MainOption”)

That should do the trick.

Failing that - try to use @postedcommand, maybe that may help.

HTH,

Ranjan

Subject: RE: Opening 2 frames at once

Thanks alot, I will give that a try

Subject: Opening 2 frames at once

I have done as you have suggested and the trigger is unsupported, the only way to get rid of this is to use the “No Selected Documents” and then it doesnt work

Subject: RE: Opening 2 frames at once

? Is your second positng a response to me? If so, I don’t understand your response - what trigger are you talking about?

Subject: RE: Opening 2 frames at once

Sorry, I wasn’t very clear.

It was a response to you. The target I am on about is in the properties for the agent that UI created to do the second part of the coding.

Subject: RE: Opening 2 frames at once

Why do this in an agent? You can put this code directly behing the action button, and in the Query Open of the page.

If you are using agents (which I don’t think that you need to do, unless I’m missing something) - then you need to set the agent property to ‘target - none’.