HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/libsoap-lite-perl/examples/COM/states.html
<html>
<head><title>JavaScript SOAP::Lite for COM Examples</title></head>
<body>

<script language="javascript"><!--

// .create() here is synonim for .new(), because new() is reserved in JavaScript

var objPerlCOM = new ActiveXObject("SOAP.Lite");
var SOAP = objPerlCOM.create();
SOAP.proxy("http://localhost/")
    .uri("http://www.soaplite.com/My/Examples");

function getStateName (form) {
  form.result.value = SOAP.getStateName(form.state.value).result();
}

//--></script>

<h1>SOAP::Lite Examples</h1>
<hr>

<form name="states">
<input type="text" name="state" value="25" size="3" maxlength="3">
<input type="button" value="getStateName" onclick="getStateName(states);">
<input type="text" name="result" readonly>
</form>

<hr>

<pre>
&lt;script language="javascript">&lt;!--

var objPerlCOM = new ActiveXObject("SOAP.Lite");
var SOAP = objPerlCOM.create();
SOAP.proxy("http://localhost/")
    .uri("http://www.soaplite.com/My/Examples");

function getStateName (form) {
  form.result.value = SOAP.getStateName(form.state.value).result();
}

//-->&lt;/script>
</pre>

</body>
</html>