cancel
Showing results for 
Search instead for 
Did you mean: 

New browser window in BSP

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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!