Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Feb 2004
    Location
    Florida, USA
    Posts
    275
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is it possible to place an HTML page inside of a table?

    Is there a way to display an html page inside of another (more sepcifically inside of a table) by using absolute position or any other way?

    frames is out of the question

    Thanks
    Psycho

  • #2
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    PHP - If you have the file you want to put in the table just like
    Code:
    <p>Error 404 helps here</p>
    which is just the code inside the <body> tag.

    Then inside your table you would put
    PHP Code:
    <?PHP require ('tabletext.html'); ?>
    (replacing tabletext.html with the location of your document) and that would work.
    Last edited by gsnedders; 02-29-2004 at 08:48 PM.

  • #3
    Regular Coder
    Join Date
    Feb 2004
    Location
    Florida, USA
    Posts
    275
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much, I Found that using I frames helps too, i dont know which form is better, but ill try both to see which way i like the most.

    Thanks again
    Psycho

  • #4
    Regular Coder oldcrazylegs's Avatar
    Join Date
    Feb 2004
    Location
    East Moline Illinois USA
    Posts
    414
    Thanks
    4
    Thanked 5 Times in 4 Posts

    Is it possible to place an HTML page inside of a table?

    Does your host allow server-side includes? if so, try this.

    <!--#include file="yourfile.txt" -->

    If not try javaScript Includes.

    <script language="javascript" src="yourfile"></script>

    Allso Iframe or Object tags

  • #5
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts

    Re: Is it possible to place an HTML page inside of a table?

    Originally posted by oldcrazylegs
    Does your host allow server-side includes? if so, try this.

    <!--#include file="yourfile.txt" -->

    If not try javaScript Includes.

    <script language="javascript" src="yourfile"></script>

    Allso Iframe or Object tags
    Think of the people with javascript disabled, they wouldn't see it, and to use the server side includes you should still get down to the content inside <body> tags becuase otherwise it wouldn't validate (see my sig for the validator).

  • #6
    New Coder
    Join Date
    Jun 2002
    Location
    behind you
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Re: Is it possible to place an HTML page inside of a table?

    Originally posted by Error 404
    Think of the people with javascript disabled, they wouldn't see it, and to use the server side includes you should still get down to the content inside <body> tags becuase otherwise it wouldn't validate (see my sig for the validator).
    Well - as always - it depends on the audience you have or are targetting for.

    How many people have JavaScript disabled these days? How many sites depend on JavaScript?
    ~Kang He
    Prepare to be b0rkified.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    ColoRockyz
    Posts
    1,646
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yep...and anyone surfing without javascript enabled knowing how many sites depend on this must be kinda goofy anyway...and probably not the customer you're looking for...IMO
    Right, gee...er...guys?
    Hah!
    Zoobie or not Zoobie...That is the problem.
    <body onUnload="flush( ! )">

  • #8
    Regular Coder
    Join Date
    Aug 2002
    Location
    Oregon, United States of America
    Posts
    882
    Thanks
    1
    Thanked 9 Times in 9 Posts
    HTML includes something called an Object feild. which you can use to make a sort of floating frame. but i would use an iframe if possible. no need for PHP.
    If I'm postin here, I NEED YOUR HELP!!


  •  

    Posting Permissions

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