Problem: How to create text output to a specified table?

R

Richard

Table 1 contains a list of 10 items which I want to remain constantly
visible.
Each item in it's own cell just for clarification.

Below it is Table 2 which contains a short description of something or
other.

As user clicks on cell3 in table 1, I want table 2 to show other
information. Cell5 in table 1 would show yet other items.

Anyone have any clues or an example of how this might happen?

No frames. Just playing around with an idea.

thanks.
 
S

Steve Pugh

Richard said:
Table 1 contains a list of 10 items which I want to remain constantly
visible.
Each item in it's own cell just for clarification.

Below it is Table 2 which contains a short description of something or
other.

As user clicks on cell3 in table 1, I want table 2 to show other
information. Cell5 in table 1 would show yet other items.

Anyone have any clues or an example of how this might happen?

No frames. Just playing around with an idea.

Build ten pages.
Have the same table 1 in all ten of them (include it via a
pre-processor or SSI to save on the copy and paste).
Have different contents below the common table (may or may not be
another table depending on contents).
Links in table 1 go to pageX.html#table2 where X is the number of the
page and where there's a <a name="table2"> or id="table2" at the start
of table2.

Steve
 
R

Richard

Steve Pugh said:
Build ten pages.
Have the same table 1 in all ten of them (include it via a
pre-processor or SSI to save on the copy and paste).
Have different contents below the common table (may or may not be
another table depending on contents).
Links in table 1 go to pageX.html#table2 where X is the number of the
page and where there's a <a name="table2"> or id="table2" at the start
of table2.

Steve

Thanks. I have looked at that but would like to avoid duplicating pages.
If an image can be rotated in a table on the same page, why not text?
I was thinking of using a function to display the chosen item results, but
don't know how to work the coding within the function itself.
such as:
function choice1 () {
if ..............<body><html><table>write text here</table>.......

I have the "java script bible" but it doesn't get into that kind of detail.
working samples would be nice.
 
D

Davmagic com

From: anom@anom (Richard)
Table 1 contains a list of 10 items which I
want to remain constantly visible.
Each item in it's own cell just for
clarification.
Below it is Table 2 which contains a short
description of something or other.
As user clicks on cell3 in table 1, I want
table 2 to show other information. Cell5 in
table 1 would show yet other items.
Anyone have any clues or an example of
how this might happen?

Use JavaScript... have a look at my front page (link below) and View
Source to see how the effect works near the top of the page when you
mouseover certain (colored) table cells and get a (text) Image below...
which is different depending on which cell you mouseover...

This may not be exactly what you want, but it accomplishes the same type
of thing!

Web Design-Magic-Painting-Junking-Games
INFO 2000 For You
http://www.davmagic.com
 
S

Steve Pugh

Richard said:
Thanks. I have looked at that but would like to avoid duplicating pages.

Then go for a database solution. One "page" that displays different
content depending on a variable in the URL.
If an image can be rotated in a table on the same page, why not text?

Would you want to download all the text at once, even if you only
wanted to look at one out of the ten pages? And what is displayed when
JavaScript is disabled?

It can be done quite eaisly with JavaScript. Either by creating new
text nodes in the DOM or by simply manipulating the CSS display
property of a block of text (and other methods using proprietary
properties like innerHTML).

Steve
 
B

Bagbourne

Richard said:
Thanks. It is something close to what I'm looking for.
I'll just keep looking around for more kloos.

You could put an <iframe> in the cell you want to change, and have the link
direct the results to that.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top