It depends whether you know at the time of form submission whether you're going to want one frame or many. If you do, then it can almost certainly be done by targeting the link (at '_top', or '_parent', probably).

if you won't know that, as seems likely, then your output templates will have to be able to force framed and non-framed display. The way in is easy, as you've seen, but the only way to break out of a frame you're already in is with javascript. A universal 'frame me' and 'don't frame me' mechanism that lived at the top of each page would be quite simple to write, but a major pain in practice: that kind of thing disrupts history navigation, often fails when there's more than one domain involved and causes mouth ulcers.

can you really not use an inline mechanism instead? there aren't many frame-friendly tasks that can't be accomplished with either dhtml or the template toolkit, or both, and you'd save yourself a heap of misery. frames were a terrible kludge when they were new, and time has not been kind to them.

/me blushes quietly to recall how Modern it all seemed at the time


In reply to Re: Create and get rid of frames page with Perl by thpfft
in thread Create and get rid of frames page with Perl by tachyon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.