Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /usr/share/doc/perl-SOAP-Lite/examples/COM/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/doc/perl-SOAP-Lite/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>

Hry