SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: how to load a htm script into a table

  1. #1
    SitePoint Addict
    Join Date
    Mar 2005
    Location
    Toronto
    Posts
    378
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to load a htm script into a table

    this is my code
    Code:
    <table>
    <tr>
    <td src="name.htm"></td>
    </tr>
    </table>
    could someone plese tell me what went wrong please

  2. #2
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,419
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there is NO such thing as a src='' for a td cell!

    I think you are thinking of an SSI or something like that

    a td cell is only a holder element for something like an image or something else

  3. #3
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could create an iframe and link the frame to whatever page you were aiming at inserting into the table.

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That method will probably become feasible in XHTML 2.0, but that is way off yet.
    Birnam wood is come to Dunsinane

  5. #5
    CTO htmlguy's Avatar
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Iframe or layers

    TD is a data cell. It is not able to load anything or specific actions by itself. That is where frames, I-frames, and layers come in. You should consider those.
    HTMLGuy

  6. #6
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could also insert an OBJECT element into the TD. That's the modern W3C way (iframes are deprecated). Needless to say, it's not well-supported by the most popular browser out there.
    Birnam wood is come to Dunsinane

  7. #7
    CTO htmlguy's Avatar
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Si, Senor

    Yes you could use objects but it is not able to be used in all browsers like you said. Tables are for formatting not displaying data.
    HTMLGuy

  8. #8
    SitePoint Evangelist sputza's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up use php

    There is really no way to do what you are wanting using XHTML. Browser support for objects is really weak and far off of working on all browsers..

    If your server has PHP you can do an include:

    PHP Code:
         <?PHP //include whatever page you want via php
           
    include ("yourpage.php");
           
    ?>
    If you need help with PHP includes please PM me.
    Steven Watkins
    Chief Web Ninja
    Code Monkey Interactive
    lowgravity.ca

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
  •