Support Overview

Tutorials

Client API Usage Examples

Upgrade Information

FAQ

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.

<script>

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;

}


</script>

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="qualitytestiad.visualware.com">Dulles, VA</option>
<option value="qualitytestlhr.visualware.com">London, England</option>
<option value="qualitytestsjc.visualware.com" selected>San Jose, CA</option>
</select>
</form>
<br>

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

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

<script>updateApplet();
</script>


 

MyConnection Server

Home
Online Testing Portal
Download
Purchase
Resources
Support

Visualware Products

VisualRoute
eMailTrackerPro
Visual IP Trace

   

© Visualware Inc. 2017 - All Rights Reserved