View Full Version : Repeat table how ?


mikew2479
02-27-2007, 09:39 AM
hello i have posted a similar question in another section of the forum, this time i have more info.

Basically with the html i have pasted you would see the table i intend to create i was wondering how without java i could by creating a button, make the button apon clicking it create a clone of the table above someone could paste data into.
perhaps as someone has suggested a template with repeating regions. I don't however understand how to do that and how that would create the desired result.
does anyone know how i can do this and could they guide me through it.

here is the html
thankyou.

<style type="text/css">
<!--
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style2 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
<table width="876" height="427" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="77" colspan="7">&nbsp;</td>
</tr>
<tr bgcolor="ffe246">
<td width="139" height="61" bgcolor="ffe246"><span class="style1">Weather forecast</span></td>
<td width="25" bgcolor="ffe246"><span class="style2"></span></td>
<td width="187" bgcolor="ffe246"><span class="style2"><strong>Cinema Now showing </strong></span></td>
<td width="29" bgcolor="ffe246"><span class="style2"></span></td>
<td width="105" bgcolor="ffe246"><span class="style2"><strong>Bus Routes </strong></span></td>
<td width="29" bgcolor="ffe246"><span class="style2"></span></td>
<td width="362" bgcolor="ffe246"><span class="style2"><strong>Local info </strong></span></td>
</tr>
<tr>
<td height="198" colspan="7"><table width="986" height="198" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="26" colspan="3"><span class="style1">Tours on Monday</span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td width="46">&nbsp;</td>
<td width="466">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="19" colspan="7">the button to repeat the table automatically create another. would go in the left corner of this row. </td>
</tr>
</table>

J to the izzosh
02-27-2007, 11:32 AM
I'm afraid that you can't generate new content on a page without a server-side scripting language like Javascript. Even if you created an array of prefabricated but hidden tables on the page so you wouldn't have to generate new content, you would still need server-side scripting to alter their display properties when revealing them.

Please don't post multiple threads on the same topic. Feel free, however, to post new information in existing threads (http://www.lissaexplains.com/forum/showthread.php?t=62903).