Skip to Content
avatar image
Former Member

New browser window in BSP

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 30, 2004 at 03:10 PM

    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!

    Add comment
    10|10000 characters needed characters exceeded