Support Overview

Tutorials

Client API Usage Examples

Upgrade Information

FAQ

New Release History

You are here:   Visualware >   MyConnection Server >   Support >   HTML 5 Support >   Converting a Java test to an HTML 5 test

Converting a Java test to an HTML 5 test

Contact Us

Step 1: Edit the published test and place the <applet> tags in a variable

NOTE: Do not rename the variable name. Remove all line breaks. Click here for more help on step 2.

Before

<!-- Begin MyConnection Server HTML applet -->

<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" codebase="" archive="/myspeed/myspeed_s_8.jar,/myspeed/plugins_s_8.jar" width="600" height="400">
<param name="permissions" value="all-permissions"></param>
<param name="config" value="voip_test">
<param name="testspecid" value="-1">
Java is required to view this applet
</applet>


<!-- End MyConnection Server HTML applet -->

After

<!-- Begin MyConnection Server HTML applet -->

<script>
var m_applet_params = '<applet MAYSCRIPT name="myspeed" code="myspeedserver/applet/myspeed.class" codebase="" archive="/myspeed/myspeed_s_8.jar,/myspeed/plugins_s_8.jar" width="600" height="400"><param name="permissions" value="all-permissions"></param><param name="config" value="voip_test"><param name="testspecid" value="-1">Java is required to view this applet</applet>';
</script>


<!-- End MyConnection Server HTML applet -->

The HTML file for a published page can be found in the /www/publish directory of the MCS root directory.

Step 2: Add a <canvas> tag in the location the test should appear

NOTE: Do not change the id value of the DIV or the Canvas.

<div id="canvas-container">
<canvas id="canvs3" style="background-color:#F0F0F0;">Your browser does not support the HTML5 canvas tag.</canvas>
</div>

Step 3 - Include the test library

This include statement must be at the bottom of the page.

<script src="boot.lib"></script>

An example of how the changes should look from a currently published page (mouse rollover)

 

MyConnection Server

Home
Online Testing Portal
Download
Purchase
Resources
Support

Visualware Products

VisualRoute
eMailTrackerPro
Visual IP Trace

   

© Visualware Inc. 2017 - All Rights Reserved