in reply to CGI frames -- HELP

Is it possible to have a link change 2 frames?

Yes. Instead of having a link on the left specify the right-hand frame as a target, have the link instead replace the entire frameset. To avoid needing a new frameset for each line, do the both the frameset generation and the frame content generation in the same CGI, passing the target URL in as an argument.

Replies are listed 'Best First'.
Re: Re: CGI frames -- HELP
by daveh71 (Novice) on May 01, 2001 at 19:59 UTC
    dws, can you give me an example of this. I have tried placing a function in as frame (FRAME SRC=$test NAME=&makerightframe)....but it doesn't seem to work. I would rather not have to generate 2 files then point to them.... what is the alternative. Thanks so much for your help. dave
      Using this code for starters, I would flesh out the fragment that generates the left-hand frame, and arrange to emit URLs that look something like <a href="$ENV{'SCRIPT_NAME'}?url=$url" target=_top> You'll need to URL-encode the URL, but there's a routine in CGI.pm that will do that for you.

      Then, to pass the parameters along, I'd extend the fragment that generates the frameset to add some or all of the parameters to the SRC= attributes for the frames.

      I don't want to spoil your fun by providing a complete solution. Let me know if you need more.