Spenser has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use the redirect command to switch the web browser to a new frame. I have a left margin frame and a main frame. I want to redirect or change the contents of both frames. Here's my relevent code section:
use CGI qw/:standard/; my $co = new CGI; if ($x eq "9000") { print $co->redirect(-target=>'_top', -location +=>'/intranet/subdir/index.html'); }
This works, sort of, except that I end of with two left margins--the first margin along with both the new margin and the new main frame inside of the old main frame. This is not the desired effect I was hoping for. No, instead I was hoping to replace the entire page with a new main frame and new margin.
I've searched through the Perl Monks site pretty thoroughly, but can't figure out where I'm going wrong. Incidentally, when I add -nph=>1, I get a malformed header error. I've also tried replacing "redirect" with "header"; no difference.
Any thoughts?
Edited: 24 July 2001 - 20:00 (PDT), footpad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirect to New Frames
by thpfft (Chaplain) on Jul 24, 2001 at 13:45 UTC | |
|
Re: Redirect to New Frames
by bbfu (Curate) on Jul 24, 2001 at 13:00 UTC | |
|
Re: Redirect to New Frames
by Spenser (Friar) on Jul 24, 2001 at 18:40 UTC |