Support Overview


Client API Usage Examples

Upgrade Information


New Release History

You are here:   Visualware >   MyConnection Server >   Support >   Client API Usage Examples >   User Defined Test Location

User Defined Test Location

Choose a location to test to:

Code Required

This example is designed for users with Access Cloud Servers, this will not work with regular MCS tests. Click here for a regular MCS example.

Copy and paste the code below into the <head></head> section of the web page.


function updateApplet() {

var loc = document.getElementById('chooseLocation').value;

var code = '<applet mayscript name="mcs" code="myspeedserver/applet/myspeed.class" archive="/myspeed/myspeed_s_8.jar,/myspeed/plugins_s_8.jar" codebase="http://'+ loc +'" width=600 height=500>';
code += '<param name="config" value="hbss">';
code += '<param name="testspecid" value="-2">';
code += '<param name="permissions" value="all-permissions">'
code += '</APPLET>';

document.getElementById('testApplet').innerHTML = code;



Copy and paste the code below where the form and applet should appear.

Code comments shown in blue.

<!-- Choose location title -->
<p>Choose a location to test to:</p>

<!-- Form for choosing test location. Set "value" as the URL/IP of the Access Cloud Server
without the http:// prefix -->

<form action="index.html" method="get">
<select id="chooseLocation" name="chooseLocation" onChange="updateApplet()">
<option value="">Dulles, VA</option>
<option value="">London, England</option>
<option value="" selected>San Jose, CA</option>

<!-- This defines the location of the applet when the form has
been submitted. Place in your page accordingly -->

<div id="testApplet"></div>



MyConnection Server

Online Testing Portal

Visualware Products

Visual IP Trace


© Visualware Inc. 2017 - All Rights Reserved