Det virker ikke.... her kommer lige noget html kode...
Først kommer der min 'hoved' side som indeholder javascript'et og iframe:
<html>
<head>
<meta name="author" content="Dann Vestergaard">
<link rel="stylesheet" type="text/css" href="../Style.css">
<script LANGUAGE="JavaScript">
function getValue(f){
var val = "";
ifrChecks = window.frames['list_frame'].analysis.idArray;
for(i=0;ifrChecks.elements.length>i;i++){
if(ifrChecks.checked)val += "," + ifrChecks.value;
}
f.value_field.value = (val)?val.substring(1):"";
}
</script>
<title>Creation of an analysis map - linking analysis to compound</title>
</head>
<body>
<h2>Create a new analysis map - Step 2/3</h2>
<img src="../images/Divider1a.png">
<br>
<p>Here you must define the analysis, to include in the analysis map</p>
<center>
<form method="post" action="
http://localhost:8080/chemicalinventory/administration/adminController.jsp?action=new_map&code2=yes&map_id=39" name="list_analysis" onsubmit="getValue(this);">
<table class="box" cellspacing="1" cellpadding="0" width="750">
<thead>
<tr>
<th class="blue" width="31">?</th>
<th class="blue" width="198">Analysis name</th>
<th class="blue" width="464">Description</th>
<th class="blue" width="53">Version</th>
<th width="15"> </th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="6">
<iframe id="list_frame" frameborder="0" scrolling="yes" src="
http://localhost:8080/chemicalinventory/administration/adminController.jsp?action=analysis_list" width="750" height="300" marginwidth="0" name="list_frame">
</iframe>
<input type="hidden" name="value_field">
<hr>
<hr>
</td>
</tr>
</tbody>
</table>
<br>
<input class="submit" type="submit" name="Submit" value="Continue">
<input class="submit" type="reset" name="reset" value="Reset">
</FORM>
</center>
</body>
</html>
-------------------------------------------------------------------------------------
Hernæst kommer den kode som ligger inde i min iframe..
<html>
<head>
<meta name="author" content="Dann Vestergaard">
<link rel="stylesheet" type="text/css" href="../Style.css">
<title>Create a list of analysis</title>
</head>
<body>
<center>
<form method="post" name="analysis">
<table border="0" cellpadding="2" cellspacing="1">
<tr class="normal"><td width="25"><input type="checkbox" name="idArray" value="1 "></td><td width="200">Assay 1</td><td width="475">Dette er beskrivelsen af den første analyse med history på</td><td width="50" align="center">1</td></tr>
<tr class="blue"><td width="25"><input type="checkbox" name="idArray" value="2 "></td><td width="200">Assay for test</td><td width="475">Nu kommer der lige en kommentar mere..</td><td width="50" align="center">1</td></tr>
<tr class="normal"><td width="25"><input type="checkbox" name="idArray" value="4 "></td><td width="200">Assay number 400</td><td width="475">XXX...</td><td width="50" align="center">1</td></tr>
<tr class="blue"><td width="25"><input type="checkbox" name="idArray" value="5 "></td><td width="200">Assay number 5</td><td width="475"></td><td width="50" align="center">1</td></tr>
<tr class="normal"><td width="25"><input type="checkbox" name="idArray" value="8 "></td><td width="200">HPLC Assay</td><td width="475">Et assay til hplc</td><td width="50" align="center">1</td></tr>
<tr class="blue"><td width="25"><input type="checkbox" name="idArray" value="3 "></td><td width="200">mlml</td><td width="475"></td><td width="50" align="center">1</td></tr>
</table>
</form>
</center>
</body>
</html>