File: states.html

package info (click to toggle)
libsoap-lite-perl 1.27-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,680 kB
  • sloc: perl: 8,908; makefile: 23; cs: 16
file content (47 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<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>