Frames rarely solve problems, but most of the times, they create a huge load of new problems, starting with breaking bookmarks, search engines, and page designs. The same applies to iframes. Don't use frames and iframes for new web pages.

The OP wants a showcase effect. I can't imagine any good use for that. Javascript code to break out of foreign frames had become common just because people don't want to see their work in a showcase of some bad guy that pretends it's his work.

For a web designer wanting to show his work, standard hyperlinks to his client's web sites should be sufficient. Adding a target attribute to open a new window or tab may be useful, but is completely optional. A simple screenshot is often sufficient, too.

For web sites that want to share content on the base of some kind of contract, parsing and rewriting HTML and JS should not be needed. The source web server simply offers an interface from which the content (and required meta-data) can be fetched in a form that is easily useable for the showcase web server. JSON and XML could be used as data formats, FTP and HTTP could be used to transport the content and meta-data. Passwords, SSL certificates, and IP address checks could be used to limit the availability of the data and meta-data. Transforming the content to (X)HTML is left to the destination web server.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^2: Re-rendering web pages by afoken
in thread Re-rendering web pages by rastoboy

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.