Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-10-2007, 04:42 AM   PM User | #1
pacgal
New to the CF scene

 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
pacgal is an unknown quantity at this point
Dynamically add a row to a form

I am trying to create a form that allows the user to adjust the numbers of rows.

The html below shows a five line version, but I would like the user to be able to select 10,15,25 and 50 line version and have the work with the cgi submit button that this table is part of. Ideally, when the user changed the number of rows the information already entered would remain.

Thanks
pacgal

<html>
<head>
<title>Bidding Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#FFFFFF">
<table width="56%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td width="9%"><b><font face="Arial, Helvetica, sans-serif" class="formSize">Lot
#*</font></b></td>
<td width="44%"><b><font face="Arial, Helvetica, sans-serif" class="formSize">Description*</font></b></td>
<td width="11%"><b><font face="Arial, Helvetica, sans-serif" class="formSize">Maximum
Bid*</font></b></td>
<td width="36%"><b><font face="Arial, Helvetica, sans-serif" class="formSize">Increase?</font></b></td>
</tr>
<tr>
<td width="9%" height="26">
<input type="text" name="lot1" size="10">
</td>
<td width="44%" height="26">
<input type="text" name="desc1" size="80">
</td>
<td width="11%" height="26">
<input type="text" name="max1" size="15" onBlur="parseelement(this)">
</td>
<td width="36%" height="26" class="formSize">
<p> <b><font face="Arial, Helvetica, sans-serif">
<input type="checkbox" name="incr.1" value="Increase 25%">
25% </font></b></p>
</td>
</tr>
<tr>
<td width="9%">
<input type="text" name="lot2" size="10">
</td>
<td width="44%">
<input type="text" name="desc2" size="80">
</td>
<td width="11%">
<input type="text" name="max2" size="15" onBlur="parseelement(this)">
</td>
<td width="36%" class="formSize"> <b><font face="Arial, Helvetica, sans-serif">
<input type="checkbox" name="incr.2" value="Increase 25%">
25%</font></b></td>
</tr>
<tr>
<td width="9%">
<input type="text" name="lot3" size="10">
</td>
<td width="44%">
<input type="text" name="desc3" size="80">
</td>
<td width="11%">
<input type="text" name="max3" size="15" onBlur="parseelement(this)">
</td>
<td width="36%" class="formSize"> <b><font face="Arial, Helvetica, sans-serif">
<input type="checkbox" name="incr.3" value="Increase 25%">
25%</font></b></td>
</tr>
<tr>
<td width="9%" height="33">
<input type="text" name="lot4" size="10">
</td>
<td width="44%" height="33">
<input type="text" name="desc4" size="80">
</td>
<td width="11%" height="33">
<input type="text" name="max4" size="15" onBlur="parseelement(this)">
</td>
<td width="36%" height="33" class="formSize"> <b><font face="Arial, Helvetica, sans-serif">
<input type="checkbox" name="incr.4" value="Increase 25%">
25%</font></b></td>
</tr>
<tr>
<td width="9%">
<input type="text" name="lot5" size="10">
</td>
<td width="44%">
<input type="text" name="desc5" size="80">
</td>
<td width="11%">
<input type="text" name="max5" size="15" onBlur="parseelement(this)">
</td>
<td width="36%" class="formSize"> <b><font face="Arial, Helvetica, sans-serif">
<input type="checkbox" name="incr.5" value="Increase 25%">
25%</font></b></td>
</tr>
</table>
<table width="56%" border="1" cellspacing="1" cellpadding="1">
<tr>
<td width="9%">
<input type="text" name="lot62" size="10">
</td>
<td width="44%">
<input type="text" name="desc62" size="80">
</td>
<td width="11%">
<input type="text" name="max62" size="15" onBlur="parseelement(this)">
</td>
<td width="36%" class="formSize"><b><font face="Arial, Helvetica, sans-serif">
<input type="checkbox" name="incr.62" value="Increase 25%">
25%</font></b></td>
</tr>
</table>
</body>
</html>
pacgal is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:43 PM.


Advertisement
Log in to turn off these ads.