[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] One for the perlmonks
Steve Tickle <steve.tickle [at] softhome.net> wrote :
> How do I redirect to another web page with the target frame being other
> than the current frame?
>
> I currently have the line
> print("location:$Redirect\n\n");
> in my script and need to know where to put the equivalent of
> "target='some_frame'"
>
> Can anyone help?
>
As they'd say on c.l.p.misc this is not a Perl question.
It's an HTML question and you can find the answer in the HTML book.
Essentially, name the frame you wish the link contents to be displayed in. Then use that name in your target='some_frame'.
e.g.
<a href="somehtmlpage" target="some_frame">
implies that "some_frame" must be known. Therefore
<frameset>
<frame .... name="some_frame">
..
</frameset>
must have previously occurred. Easy peasy when you know how ;-).
You'd have to do this whether you were using Perl, Java or C to write out your web page under the CGI spec. This is why it is not a Perl question :)
Look at CPAN for HTML::Template modules. They might also be useful.
Regards & HTH
Lesley
P.S. To others out there. Will get back with my system oops next week sometime. Up to the hilt with 'stuff' atm but I would like a diagnosis when I can get the data out.
Regards & TIA.
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.