display content of html-file in table-column ???

Discussion in 'HTML' started by Chris, Jun 13, 2004.

  1. Chris

    Chris Guest

    Hi,

    I have a table with 2 columns : first column has an anchor (with the href
    set to test.html), second column should display the content of test.html
    when clicked on the anchor.

    <xmp>
    <table width="100%" height="100%">
    <tr height="100%">
    <td valign="top" >
    <a href="overview.html">Overview</a>
    </td>
    <td> HERE DO I WANT TO DISPLAY THE CONTENT OF
    TEST.HTML
    </td>
    </tr>
    </table>
    </xmp>But how ?Thanks for any suggestion.Chris
     
    Chris, Jun 13, 2004
    #1
    1. Advertising

  2. Chris

    SpaceGirl Guest

    "Chris" <> wrote in message
    news:GCVyc.154546$-ops.be...
    > Hi,
    >
    > I have a table with 2 columns : first column has an anchor (with the href
    > set to test.html), second column should display the content of test.html
    > when clicked on the anchor.
    >
    > <xmp>
    > <table width="100%" height="100%">
    > <tr height="100%">
    > <td valign="top" >
    > <a href="overview.html">Overview</a>
    > </td>
    > <td> HERE DO I WANT TO DISPLAY THE CONTENT OF
    > TEST.HTML
    > </td>
    > </tr>
    > </table>
    > </xmp>But how ?Thanks for any suggestion.Chris
    >


    <div style="position:absolute; top:0px; left:0px; width:200px;">
    <p>left hand area</p>
    <p><a href="overview.html">Overview</a></p>
    <p>left hand area</p>
    <p>left hand area</p>
    <p>left hand area</p>
    </div>

    <div style="position:absolute; top:0px; left:200px; width:500px;">
    <!--#include file="mycontentfromanotherfile.htm" -->
    </div>


    ....or...

    <div style="position:absolute; top:0px; left:0px; width:200px;">
    <p>left hand area</p>
    <p><a href="overview.html">Overview</a></p>
    <p>left hand area</p>
    <p>left hand area</p>
    <p>left hand area</p>
    </div>

    <div style="position:absolute; top:0px; left:200px; width:500px;">
    <iframe src="mycontentfromanotherfile.htm" width="500" hieght="500"
    scrolling="auto"></iframe>
    </div>
     
    SpaceGirl, Jun 13, 2004
    #2
    1. Advertising

  3. Chris

    Chris Guest

    Hi,

    thanks for your suggestion ... but I don't want to display
    'mycontentfromanotherfile.htm', I want to display the content of file
    'test.html in the other column but ONLY when I click on the anchor.

    any ideas ?

    thanks
    Chris

    "SpaceGirl" <> wrote in message
    news:...
    >
    > "Chris" <> wrote in message
    > news:GCVyc.154546$-ops.be...
    > > Hi,
    > >
    > > I have a table with 2 columns : first column has an anchor (with the

    href
    > > set to test.html), second column should display the content of test.html
    > > when clicked on the anchor.
    > >
    > > <xmp>
    > > <table width="100%" height="100%">
    > > <tr height="100%">
    > > <td valign="top" >
    > > <a href="overview.html">Overview</a>
    > > </td>
    > > <td> HERE DO I WANT TO DISPLAY THE CONTENT OF
    > > TEST.HTML
    > > </td>
    > > </tr>
    > > </table>
    > > </xmp>But how ?Thanks for any suggestion.Chris
    > >

    >
    > <div style="position:absolute; top:0px; left:0px; width:200px;">
    > <p>left hand area</p>
    > <p><a href="overview.html">Overview</a></p>
    > <p>left hand area</p>
    > <p>left hand area</p>
    > <p>left hand area</p>
    > </div>
    >
    > <div style="position:absolute; top:0px; left:200px; width:500px;">
    > <!--#include file="mycontentfromanotherfile.htm" -->
    > </div>
    >
    >
    > ...or...
    >
    > <div style="position:absolute; top:0px; left:0px; width:200px;">
    > <p>left hand area</p>
    > <p><a href="overview.html">Overview</a></p>
    > <p>left hand area</p>
    > <p>left hand area</p>
    > <p>left hand area</p>
    > </div>
    >
    > <div style="position:absolute; top:0px; left:200px; width:500px;">
    > <iframe src="mycontentfromanotherfile.htm" width="500" hieght="500"
    > scrolling="auto"></iframe>
    > </div>
    >
    >
     
    Chris, Jun 13, 2004
    #3
  4. Chris

    Steve Pugh Guest

    "Chris" <> wrote:

    >thanks for your suggestion ... but I don't want to display
    >'mycontentfromanotherfile.htm', I want to display the content of file
    >'test.html in the other column but ONLY when I click on the anchor.
    >
    >any ideas ?


    First idea would be to stop top posting.

    Then, either use an iframe with all the problems that leads to. Or
    simply link to a new page which is identical except for the contents
    of that one cell.

    Steve

    --
    "My theories appal you, my heresies outrage you,
    I never answer letters and you don't like my tie." - The Doctor

    Steve Pugh <> <http://steve.pugh.net/>
     
    Steve Pugh, Jun 13, 2004
    #4
  5. Chris

    SpaceGirl Guest

    > >thanks for your suggestion ... but I don't want to display
    > >'mycontentfromanotherfile.htm', I want to display the content of file
    > >'test.html in the other column but ONLY when I click on the anchor.
    > >
    > >any ideas ?


    > Then, either use an iframe with all the problems that leads to. Or
    > simply link to a new page which is identical except for the contents
    > of that one cell.
    >
    > Steve


    I agree with Steve... only way really to do it, unfortunately.
     
    SpaceGirl, Jun 13, 2004
    #5
  6. Chris

    Neal Guest

    On Sun, 13 Jun 2004 12:40:35 +0100, Steve Pugh <> wrote:

    > "Chris" <> wrote:
    >
    >> thanks for your suggestion ... but I don't want to display
    >> 'mycontentfromanotherfile.htm', I want to display the content of file
    >> 'test.html in the other column but ONLY when I click on the anchor.
    >>
    >> any ideas ?

    >
    > First idea would be to stop top posting.
    >
    > Then, either use an iframe with all the problems that leads to. Or
    > simply link to a new page which is identical except for the contents
    > of that one cell.


    Using SSI or PHP this could be made simpler. Creating pages with the
    identical material included server-side is really the best solution.
     
    Neal, Jun 13, 2004
    #6
  7. Chris

    Jeff Thies Guest

    I think you forgot to add alt.kitchensink to your long list of crossposts.
    That many crossposts makesd you *less* likely to get responses.

    > Hi,
    >
    > thanks for your suggestion ... but I don't want to display
    > 'mycontentfromanotherfile.htm', I want to display the content of file
    > 'test.html in the other column but ONLY when I click on the anchor.


    Use an IFRAME and do something like this:

    <a href="some_file.html" onclick="return
    document.getElementById('i_frame_id').src='some_file.html'">...

    Usual caveats apply. Not Tested.

    Jeff
    >
    > any ideas ?
    >
    > thanks
    > Chris
    >
    > "SpaceGirl" <> wrote in message
    > news:...
    > >
    > > "Chris" <> wrote in message
    > > news:GCVyc.154546$-ops.be...
    > > > Hi,
    > > >
    > > > I have a table with 2 columns : first column has an anchor (with the

    > href
    > > > set to test.html), second column should display the content of

    test.html
    > > > when clicked on the anchor.
    > > >
    > > > <xmp>
    > > > <table width="100%" height="100%">
    > > > <tr height="100%">
    > > > <td valign="top" >
    > > > <a href="overview.html">Overview</a>
    > > > </td>
    > > > <td> HERE DO I WANT TO DISPLAY THE CONTENT

    OF
    > > > TEST.HTML
    > > > </td>
    > > > </tr>
    > > > </table>
    > > > </xmp>But how ?Thanks for any suggestion.Chris
    > > >

    > >
    > > <div style="position:absolute; top:0px; left:0px; width:200px;">
    > > <p>left hand area</p>
    > > <p><a href="overview.html">Overview</a></p>
    > > <p>left hand area</p>
    > > <p>left hand area</p>
    > > <p>left hand area</p>
    > > </div>
    > >
    > > <div style="position:absolute; top:0px; left:200px; width:500px;">
    > > <!--#include file="mycontentfromanotherfile.htm" -->
    > > </div>
    > >
    > >
    > > ...or...
    > >
    > > <div style="position:absolute; top:0px; left:0px; width:200px;">
    > > <p>left hand area</p>
    > > <p><a href="overview.html">Overview</a></p>
    > > <p>left hand area</p>
    > > <p>left hand area</p>
    > > <p>left hand area</p>
    > > </div>
    > >
    > > <div style="position:absolute; top:0px; left:200px; width:500px;">
    > > <iframe src="mycontentfromanotherfile.htm" width="500" hieght="500"
    > > scrolling="auto"></iframe>
    > > </div>
    > >
    > >

    >
    >
     
    Jeff Thies, Jun 14, 2004
    #7
  8. Chris

    Jeff Thies Guest

    > > thanks for your suggestion ... but I don't want to display
    > > 'mycontentfromanotherfile.htm', I want to display the content of file
    > > 'test.html in the other column but ONLY when I click on the anchor.

    >
    > Use an IFRAME and do something like this:
    >
    > <a href="some_file.html" onclick="return
    > document.getElementById('i_frame_id').src='some_file.html'">...


    Should be more like this:

    <a href="some_file.html" onclick="return
    ! document.getElementById('i_frame_id').src='some_file.html'">...

    You only want to follow the link if the onclick fails.

    Season to taste.

    Jeff

    >
    > Usual caveats apply. Not Tested.
    >
    > Jeff
    > >
    > > any ideas ?
    > >
    > > thanks
    > > Chris
    > >
    > > "SpaceGirl" <> wrote in message
    > > news:...
    > > >
    > > > "Chris" <> wrote in message
    > > > news:GCVyc.154546$-ops.be...
    > > > > Hi,
    > > > >
    > > > > I have a table with 2 columns : first column has an anchor (with the

    > > href
    > > > > set to test.html), second column should display the content of

    > test.html
    > > > > when clicked on the anchor.
    > > > >
    > > > > <xmp>
    > > > > <table width="100%" height="100%">
    > > > > <tr height="100%">
    > > > > <td valign="top" >
    > > > > <a href="overview.html">Overview</a>
    > > > > </td>
    > > > > <td> HERE DO I WANT TO DISPLAY THE

    CONTENT
    > OF
    > > > > TEST.HTML
    > > > > </td>
    > > > > </tr>
    > > > > </table>
    > > > > </xmp>But how ?Thanks for any suggestion.Chris
    > > > >
    > > >
    > > > <div style="position:absolute; top:0px; left:0px; width:200px;">
    > > > <p>left hand area</p>
    > > > <p><a href="overview.html">Overview</a></p>
    > > > <p>left hand area</p>
    > > > <p>left hand area</p>
    > > > <p>left hand area</p>
    > > > </div>
    > > >
    > > > <div style="position:absolute; top:0px; left:200px; width:500px;">
    > > > <!--#include file="mycontentfromanotherfile.htm" -->
    > > > </div>
    > > >
    > > >
    > > > ...or...
    > > >
    > > > <div style="position:absolute; top:0px; left:0px; width:200px;">
    > > > <p>left hand area</p>
    > > > <p><a href="overview.html">Overview</a></p>
    > > > <p>left hand area</p>
    > > > <p>left hand area</p>
    > > > <p>left hand area</p>
    > > > </div>
    > > >
    > > > <div style="position:absolute; top:0px; left:200px; width:500px;">
    > > > <iframe src="mycontentfromanotherfile.htm" width="500"

    hieght="500"
    > > > scrolling="auto"></iframe>
    > > > </div>
    > > >
    > > >

    > >
    > >

    >
    >
     
    Jeff Thies, Jun 14, 2004
    #8
  9. Jeff Thies wrote:
    > Use an IFRAME and do something like this:
    >
    > <a href="some_file.html" onclick="return
    > document.getElementById('i_frame_id').src='some_file.html'">...


    What's wrong with the target attribute?
     
    Leif K-Brooks, Jun 14, 2004
    #9
  10. Chris

    Neal Guest

    On Mon, 14 Jun 2004 05:02:50 GMT, Leif K-Brooks <>
    wrote:

    > Jeff Thies wrote:
    >> Use an IFRAME and do something like this:
    >>
    >> <a href="some_file.html" onclick="return
    >> document.getElementById('i_frame_id').src='some_file.html'">...

    >
    > What's wrong with the target attribute?



    In general, can't use it in strict 4.01 or strict XHTML...

    Still, the opening of new pages is the domain of the user, not the author.
    Best avoided at any cost.
     
    Neal, Jun 14, 2004
    #10
  11. Neal wrote:
    > On Mon, 14 Jun 2004 05:02:50 GMT, Leif K-Brooks <>
    > wrote:
    >
    >> Jeff Thies wrote:
    >>
    >>> Use an IFRAME and do something like this:
    >>>
    >>> <a href="some_file.html" onclick="return
    >>> document.getElementById('i_frame_id').src='some_file.html'">...

    >>
    >>
    >> What's wrong with the target attribute?

    >
    > In general, can't use it in strict 4.01 or strict XHTML...


    Neither can iframes, but this example is using one anyway.
     
    Leif K-Brooks, Jun 14, 2004
    #11
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. savvy
    Replies:
    1
    Views:
    497
    savvy
    Jan 18, 2006
  2. hazz
    Replies:
    6
    Views:
    50,063
    SkyUCHC
    Jun 9, 2010
  3. Oliver Hauger
    Replies:
    2
    Views:
    2,838
  4. Rahul
    Replies:
    4
    Views:
    3,243
    Alfred
    Dec 22, 2006
  5. Marek Kurowski
    Replies:
    1
    Views:
    1,036
    Mark A. Odell
    Aug 18, 2004
Loading...

Share This Page