Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > display content of html-file in table-column ???

Reply
Thread Tools

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

 
 
Chris
Guest
Posts: n/a
 
      06-13-2004
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


 
Reply With Quote
 
 
 
 
SpaceGirl
Guest
Posts: n/a
 
      06-13-2004

"Chris" <(E-Mail Removed)> wrote in message
news:GCVyc.154546$(E-Mail Removed)-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>


 
Reply With Quote
 
 
 
 
Chris
Guest
Posts: n/a
 
      06-13-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> "Chris" <(E-Mail Removed)> wrote in message
> news:GCVyc.154546$(E-Mail Removed)-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>
>
>



 
Reply With Quote
 
Steve Pugh
Guest
Posts: n/a
 
      06-13-2004
"Chris" <(E-Mail Removed)> 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 <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      06-13-2004
> >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.


 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      06-13-2004
On Sun, 13 Jun 2004 12:40:35 +0100, Steve Pugh <(E-Mail Removed)> wrote:

> "Chris" <(E-Mail Removed)> 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.
 
Reply With Quote
 
Jeff Thies
Guest
Posts: n/a
 
      06-14-2004
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_fi le.html'">...

Usual caveats apply. Not Tested.

Jeff
>
> any ideas ?
>
> thanks
> Chris
>
> "SpaceGirl" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > "Chris" <(E-Mail Removed)> wrote in message
> > news:GCVyc.154546$(E-Mail Removed)-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>
> >
> >

>
>



 
Reply With Quote
 
Jeff Thies
Guest
Posts: n/a
 
      06-14-2004
> > 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_fi le.html'">...


Should be more like this:

<a href="some_file.html" onclick="return
! document.getElementById('i_frame_id').src='some_fi le.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" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > >
> > > "Chris" <(E-Mail Removed)> wrote in message
> > > news:GCVyc.154546$(E-Mail Removed)-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>
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Leif K-Brooks
Guest
Posts: n/a
 
      06-14-2004
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_fi le.html'">...


What's wrong with the target attribute?
 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      06-14-2004
On Mon, 14 Jun 2004 05:02:50 GMT, Leif K-Brooks <(E-Mail Removed)>
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_fi le.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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
limit on number of content placeholders(which are editable in content pages) in master page nemesis.saurabh@gmail.com ASP .Net 0 05-25-2006 04:44 AM
Error: "Content controls can only be used in a content page" J.Edwards ASP .Net 0 01-20-2006 11:43 AM
[XML Schema] Content type of complex type definition with complex content Stanimir Stamenkov XML 2 10-25-2005 10:16 AM
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">? TheKeith HTML 20 10-29-2003 11:56 AM



Advertisments