Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.