I have a page w/ a list of people. This list has 3 text boxes associated w/ them individually (ie jon has 3 boxes, jane has 3 boxes etc). What I am looking to do is put 3 boxes at the top of the page that I would call presets. I enter the preset and hit a (link or input or whatever) next to the individual and it populates his/her 3 boxes w/ the same values.
The list of names will be dynamic.
What would I want to pass to the script? I think it should be straight forward so if anyone knows where I could find something similar to this, I would appreciate it. Thx.
Here is the jsp: it may help
<html>
<h1>E</h1>
<form name="AttendanceSheetForm" method="get">
<p>Blah <br>
blah <br>
blah<br><br/>
</p>
<table cellspacing="0" cellpadding="5" border="1">
<tr class="cellcontent">
<td>Presets</td>
<td align="center"><input type="text" size="3" maxlength="3" name="0-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="0-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="0-3"></td>
</tr>
</table>
<table cellspacing="0" cellpadding="5" border="1">
<tr class="cellheader">
<th>Name</th>
<th>Achievement</th>
<th>Skills</th>
</tr>
<tr class="cellcontent">
<td>AutoTerm, First<a href="#" onclick="fun(1)"> use Preset</a></td>
<td align="center"><input type="text" size="3" maxlength="3" name="1-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="1-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="1-3"></td>
</tr>
<tr class="cellcontent">
<td>Autoterm, Second<a href="#" onclick="fun(2)"> use Preset</a></td>
<td align="center"><input type="text" size="3" maxlength="3" name="2-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="2-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="2-3"></td>
</tr>
<tr class="cellcontent">
<td>Autoterm, Third<a href="#" onclick="fun(3)"> use Preset</a></td>
<td align="center"><input type="text" size="3" maxlength="3" name="3-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="3-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="3-3"></td>
</tr>
</table>
<p><input type="submit" name="cancel" value="Cancel" class="linkbutton">
<input type="submit" name="save" value="Save" class="linkbutton">
<input type="reset" value="Clear" class="linkbutton">
</p>
</form>
</html>
The list of names will be dynamic.
What would I want to pass to the script? I think it should be straight forward so if anyone knows where I could find something similar to this, I would appreciate it. Thx.
Here is the jsp: it may help
<html>
<h1>E</h1>
<form name="AttendanceSheetForm" method="get">
<p>Blah <br>
blah <br>
blah<br><br/>
</p>
<table cellspacing="0" cellpadding="5" border="1">
<tr class="cellcontent">
<td>Presets</td>
<td align="center"><input type="text" size="3" maxlength="3" name="0-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="0-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="0-3"></td>
</tr>
</table>
<table cellspacing="0" cellpadding="5" border="1">
<tr class="cellheader">
<th>Name</th>
<th>Achievement</th>
<th>Skills</th>
</tr>
<tr class="cellcontent">
<td>AutoTerm, First<a href="#" onclick="fun(1)"> use Preset</a></td>
<td align="center"><input type="text" size="3" maxlength="3" name="1-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="1-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="1-3"></td>
</tr>
<tr class="cellcontent">
<td>Autoterm, Second<a href="#" onclick="fun(2)"> use Preset</a></td>
<td align="center"><input type="text" size="3" maxlength="3" name="2-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="2-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="2-3"></td>
</tr>
<tr class="cellcontent">
<td>Autoterm, Third<a href="#" onclick="fun(3)"> use Preset</a></td>
<td align="center"><input type="text" size="3" maxlength="3" name="3-1"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="3-2"></td>
<td align="center"><input type="text" size="3" maxlength="3" name="3-3"></td>
</tr>
</table>
<p><input type="submit" name="cancel" value="Cancel" class="linkbutton">
<input type="submit" name="save" value="Save" class="linkbutton">
<input type="reset" value="Clear" class="linkbutton">
</p>
</form>
</html>