ContentsIndexPreviousNext

5.5.1.1 Running your program inside the user's browser window

To run your program inside the user's browser window, use the <EMBED> tag to define the rectangular area within the browser window that your COBOL application should use as its initial "window." Remember, you can specify the runtime options "-c", "-d", "-l", "-e", "-x", or "-v" in the HTML EMBED tag by using the OPTIONS keyword. Use the "-c" option to specify the name of the configuration file to use when running the COBOL object. For example:

     <EMBED SRC="myprog.acu" WIDTH=400 HEIGHT=200 OPTIONS="-c cblconfi -dlex myerrs">

embeds "myprog.acu" on the Web page with configuration file "cblconfi" and various options. In this example, "myprog.acu" could be an entire COBOL application, or it could be the initial COBOL object of a distributed application using AcuServer or AcuConnect, or it could be the name of a library file.

When a user visits this Web page, the embedded object ("myprog.acu") is automatically sent from the Web server to the client machine where it immediately starts running inside the user's browser window. Configuration variables are read from the configuration file "myconfig", and errors are written to the error file "myerrs".

While the COBOL object or library is downloading and after the COBOL program exits, the plug-in displays a splash screen in the browser window. You can disable this feature by setting NOLOGO=1 in the HTML EMBED tag.

Please note that your application is not able to display its own main window menu bar when running inside a browser window. If you choose to use this method, you must program another way for your users to access your menu functions.