Configuring the virtual viewer Client HTML page

You configure the IBM Daeja ViewONE Virtual viewer by using HTML.

Procedure

  1. Edit the HTML page that displays the virtual viewer to add the following lines.
    <!DOCTYPE html>
    <html>
    <head>
       <script type="text/javascript"
        src="/viewone/v1files/viewone.js">
       </script>
    </head>
    <body>
       <object 
               class="com.ibm.dv.client.Viewer"
               id="viewone"
               width="600"
               height="600">
          <!-- Optional - place additional HTML parameters here     -->
       </object>
    </body>
    </html>
    Important: The line that begins src= must point to the IBM Daeja ViewONE Virtual viewer servlet that provides the viewer application code. By default, the path for the servlet is "/viewone/v1files/viewone.js. Be sure to use the correct path for your environment.
  2. Verify that you can access the viewer by entering the URL to the HTML page in a browser.
    For example, enter the following URL: http://myserver:8080/viewone/viewone_virtual.html
    Tip: If the viewer fails to run, specify the full URL to the location of the servlet rather than a relative path for the src= entry.

What to do next

You can edit the HTML file later to customize the viewer to meet your requirements. For information about the HTML parameters supported for the IBM Daeja ViewONE Virtual viewer, see Configuring the viewer by using HTML parameters.