Suwannee_guy
11-21-2012, 06:25 PM
What is the proper way to include javascript inside a table cell?
I tried inserting script inside a table with only one row and one data cell.
That worked.
Insert more data cells in the row and it fails.
Why?
<table border="1">
<tr>
<td>Text text text</td>
<td><script type="text/javascript">AudioPlayer.embed("audioplayer_1", {soundFile: "http://example.com/play/tune.mp3"})</script></td>
<td>?</td>
</tr>
</table>
For those who may ask, the script is for the "Word Press" stand alone mp3 player.
I tried inserting script inside a table with only one row and one data cell.
That worked.
Insert more data cells in the row and it fails.
Why?
<table border="1">
<tr>
<td>Text text text</td>
<td><script type="text/javascript">AudioPlayer.embed("audioplayer_1", {soundFile: "http://example.com/play/tune.mp3"})</script></td>
<td>?</td>
</tr>
</table>
For those who may ask, the script is for the "Word Press" stand alone mp3 player.