English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

For example if i wanted html content to appear in a table when a button is pressed, but for the other table windows to remain static then what coding would i use - would i attach javascript functions to the button?.. But how is the table window indentified in html?? If anyone could point me in the right direction i'll read up on it... i'm teaching myself web design!!

PS I'm using macromedia MX 2004 if there are any shortcuts on that programme...

Many thanks...

2006-10-15 22:41:10 · 2 answers · asked by 0000 2 in Computers & Internet Programming & Design

2 answers

Yes you use javascript, identify the cell you want to update with an id='x' and get that in your JS via document.getElementById('x').

Something like this:



Your Document






Old content



2006-10-18 00:05:53 · answer #1 · answered by Daniel R 6 · 0 0

use the onclick JavaScript event handler, example : onClick="ShowInTable()". Then write a JS function, ShowInTable(), that will make the content appear in the table. To do that you need to name your table with an appropriate id or use

. Look it up on the internet for further details.

2006-10-15 22:54:43 · answer #2 · answered by Christophe 1 · 0 0

fedest.com, questions and answers