Log in

View Full Version : "interactive table" help!!!



lakp
08-25-2005, 05:13 PM
hi! there are a few things I just cannot figure out. This is one of those sad cases [ like the hundreds of others ] so .. here is da question ...

I have a table with two columns. One column has links [ "Newspapers", "Cool Sites" etc .. ] and the other column is empty.

So, when I click on "Cool sites" on the first column on this table, how can I get stuff to appear on the second column? Like when I click "newspapers" for example, I want stuff like "Boston Globe" or "New York Times" to come on the second column and when I click "Cool sites" I want stuff like "Kirupa.com" and "{ hiroik design }" to come on the second column ...

also >> IF doing something like this is not really possible, how else can i get around something like this? any suggestions?

all help = very appreciatable! [ in the form of links to learn or code ]
thankx

jscheuer1
08-25-2005, 05:41 PM
The easiest way is perhaps to put an iframe in the second column and have your links in the first target it with external pages which contain the desired markup:

<table>
<tr>
<td><a href="news.htm" target="extLinks">News Sites</a><br>
<a href="cool.htm" target="extLinks">Cool Sites</a>
</td>
<td><iframe name="extLinks" src="" width="250" height="350" scrolling="no" frameborder="0"></iframe></td>
</tr>
</table>Then on news.htm and cool.htm put the links that you want.

You can also use javascript (in numerous ways) to get an effect like this without using an iframe but, that requires the user to have javascript enabled.

lakp
08-25-2005, 05:54 PM
cool, cool, I got this working......
please tell me more about javascript .... I would really like to play around with that too

thanx for the help, i really appreciate it!!!!

jscheuer1
08-25-2005, 06:05 PM
Well, that could require a lot of explaining. To get a good start at javascript, check out the W3schools' Javascript Division (http://www.w3schools.com/js/default.asp)

lakp
08-25-2005, 10:03 PM
k cool .... ill have a good look at that ....