on 06-30-2004 3:30 PM
Hi everyone,
I am writing a BSP application that output a table. I want to know how to display the field select-options in a new browser window and refresh the table in the main browser after selection.
Thank you,
Eric
The only way I know is using javascript.
Here I give you an example:
*main.html*********
<html>
<head>
<script language="javascript1.2">
<!--
function Change(){
window.open("child.html","","toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=120,left=300,top=260");
}
-->
</script>
<body>
<center>
<form name="form1">
<table>
<tr><td>Selected value:</td><td><input type="text" name="tf" value="(none)"></td></tr>
<tr><td colspan="2" align="center"><input type="button" value="Change Value" onClick="Change()"></td></tr>
</table>
</form>
</center>
</body>
</html>
*child.html*********
<html>
<head>
<script language="javascript1.2">
<!--
function Change(){
window.opener.document.form1.tf.value=document.form2.select.value;
}
-->
</script>
<body>
<center>
<form name="form2">
<table>
<tr><td>Value:</td><td><select name="select"><option value="1">1</option><option value="2">2</option><option value="3">3</option></select></td></tr>
<tr><td colspan="2" align="center"><input type="button" value="Change" onClick="Change()"></td></tr>
</table>
</form>
</center>
</body>
</html>
Best Regards!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.