Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing information in tables

Status
Not open for further replies.

tricet

Technical User
Sep 26, 2002
2
GB
Is it possible to change the state of one colomn or table from an action from another i.e. click on a button in table one and populates different information in table two. The only way I have got round this is to do a second html page with the same tables but changing the information in the second table to suit. This takes time in programming and in loading a new page each time in a browser.

2. Layers don't follow the same rules as tables i.e. if a layer is in a table with information and someone reduces their browser the layer stays in the same place although the tables will alter their state to match the browser size.

The question (and maybe related to question 1) is I have a list of users names and when someone rolls over the name I need information in another table to change. Like I said almost like question 1 but roll without click.

Any pointers would be great
 
Try this:

<script>
<!--
function change(i){
var num=new Array();
num[0]=&quot;<tr><td>This <b>is</b> some</td></tr><tr><td>text</td></tr>&quot;;
num[1]=&quot;<tr><td>other text</td></tr>&quot;;
document.getElementById('to_change').innerHTML=num;
}
//-->
</script>

<table id=&quot;to_change&quot;>
<tr><td>default</td></tr>
<tr><td>data</td></tr>
</table>

<a href=&quot;HREF&quot; onMouseOver=&quot;change(0);&quot;>Rollover</a>

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top