J
jpf
Currently I have the submit function definition in the header and multiple
rows where the submit function is called. It only works if there is one row,
I'd like to change the function so that it works with multiple rows but I'm
not sure how to do this. Can anyone help please?
This is generated by a perl script so you'll see some perl variables in
there and also some style sheet stuff which generates the submit text and
should not be relevant. I believe that I need to change the form name for
each row and pass that into the function. I don't know enough about
javascript to do this though
Thanks
Here's the header data:
<script language="JavaScript">
<!--
function submitform() {
document.myform.submit();
}
-->
</script>
Here's what's currently in each row:
<tr>
<td>
<form style="margin-bottom:0;" method="POST" name="myform"
action="find.exe">
<input type="hidden" name="datafile" value="$datafile">
<input type="hidden" name="strt" value="$mark">
<input type="hidden" name="pgln" value="$pgln">
<a href="javascript:document.myform.submit()"
onmouseover="lite(this)" onmouseout="lite(this)"
onfocus="this.blur()">View</a>
<noscript><input type="submit" value="View"></noscript>
</form>
</td>
<td> $name </td>
<td> $owid </td>
<td> $add1 $add2 </td>
</tr>
rows where the submit function is called. It only works if there is one row,
I'd like to change the function so that it works with multiple rows but I'm
not sure how to do this. Can anyone help please?
This is generated by a perl script so you'll see some perl variables in
there and also some style sheet stuff which generates the submit text and
should not be relevant. I believe that I need to change the form name for
each row and pass that into the function. I don't know enough about
javascript to do this though
Thanks
Here's the header data:
<script language="JavaScript">
<!--
function submitform() {
document.myform.submit();
}
-->
</script>
Here's what's currently in each row:
<tr>
<td>
<form style="margin-bottom:0;" method="POST" name="myform"
action="find.exe">
<input type="hidden" name="datafile" value="$datafile">
<input type="hidden" name="strt" value="$mark">
<input type="hidden" name="pgln" value="$pgln">
<a href="javascript:document.myform.submit()"
onmouseover="lite(this)" onmouseout="lite(this)"
onfocus="this.blur()">View</a>
<noscript><input type="submit" value="View"></noscript>
</form>
</td>
<td> $name </td>
<td> $owid </td>
<td> $add1 $add2 </td>
</tr>