SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2000
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enclosing web sites within a table

    I've been searching a little for this one and can't come up with anything. I need to enclose a web site within a table like:

    <table width="740">
    <tr><td>
    website to be enclosed (www.anthing.com)
    </td></tr>
    </table>

    Is this possible without using frames? Would prefer a javascript or some other solution if possible.

    Thanks for you help.
    www.gulfislandvacationrentals.com
    Specializing in waterfront and rural vacation properties.
    www.penderisland.info
    A vacation paradise in British Columbia's Gulf Islands

  2. #2
    SitePoint Evangelist MobileBadBoy's Avatar
    Join Date
    Jun 2002
    Location
    Mobile, Alabama
    Posts
    451
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So you're wanting the part to be enclosed separate from the page with the table?

    You can do that quick with PHP (assuming you have it).

    Code:
    table width="740">
    <tr><td>
    <? include('the_stuff_to_be_enclosed.php'); ?>
    </td></tr>
    </table>

    Just put all the stuff to go in the table in a file called "whatever".php. If I misunderstood your question, then forgive me. Just got home from work and I'm tired.
    Shawn Kerr .com

  3. #3
    SitePoint Enthusiast
    Join Date
    Nov 2000
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically what I'm trying to do is enclose one of my affiliate sites that is database driven and uneditable by me within another site that I have. This will make it easier for me to control the look. A banner across the top has for instance, links to posters, cd's, videos and a storefront. This storefront is the site to be enclosed.

    I'm not sure if this explains it well.
    www.gulfislandvacationrentals.com
    Specializing in waterfront and rural vacation properties.
    www.penderisland.info
    A vacation paradise in British Columbia's Gulf Islands

  4. #4
    SitePoint Wizard trampt's Avatar
    Join Date
    Jan 2003
    Location
    Newport, RI
    Posts
    1,997
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can load an external site into an Iframe window I guess, but it probably won't function that well. Plus I would check with your affiliate about putting their site in frames. A lot of companies don't like people loading their content into a frame making it look like someone elses design, especially when it masks the URL.

  5. #5
    SitePoint Evangelist
    Join Date
    Nov 2001
    Location
    UK
    Posts
    553
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This would also lead to extremely invalid HTML code; no doubt your affiliate site has proper HTML markup (read: html, body tags etc), therefore what you'd be doing is adding a table tag (and other HTML makup) not only outside of the <body> tag, but also the <html> tag... this is an extremely bad idea.

    If you are worried about visitors clicking on an affiliate link and being led away from your site, why not just open the affiliate link in a new window? As a developer, I would certainly be extremely unhappy if I found than an affiliate of mine was altering the display of my page in this way, however putting it inside a frame (not an IFrame, evil things) would be acceptable practice in my opinion.
    Regards, Ant.

  6. #6
    SitePoint Enthusiast
    Join Date
    Nov 2000
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have managed to get Iframe windows to work fairly well but Netscape seems to have a big problem with it. Will be contacting the affiliate company to see if they have objections to the test page. At any rate, have learned something new that may or may not be acceptable for the application.

    Opening the links in a new window is the backup plan but it looks so great with the affiliate site located withing my pages.

    Many thanks for the input.
    www.gulfislandvacationrentals.com
    Specializing in waterfront and rural vacation properties.
    www.penderisland.info
    A vacation paradise in British Columbia's Gulf Islands

  7. #7
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by okephoto
    I have managed to get Iframe windows to work fairly well but Netscape seems to have a big problem with it. Will be contacting the affiliate company to see if they have objections to the test page. At any rate, have learned something new that may or may not be acceptable for the application.
    iframes are only unsupported by Netscape 4. Netscape 6+ renders them fine. Here's a solution that will probably work for you:
    HTML Code:
    <iframe src="http://www.example.com/affiliate/" width="200" height="60">
    <a href="http://www.example.com/affiliate/" 
    onclick="window.open(this.href, 'newWin', 'width=200, height=60'); 
    return false;">
    Link to affiliate
    </a>
    </iframe>
    This way, the iframe will show in browsers that support it. In old browsers, users will see a link that opens in a new window. And for text-only browsers like Lynx, the link will open in the same window. There, everybody's happy!

  8. #8
    SitePoint Evangelist MobileBadBoy's Avatar
    Join Date
    Jun 2002
    Location
    Mobile, Alabama
    Posts
    451
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *insert rep here for vinnie* - I haven't "spread enough around" yet.
    Shawn Kerr .com

  9. #9
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by MobileBadBoy
    *insert rep here for vinnie* - I haven't "spread enough around" yet.
    Thanks!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •