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
48
49
| /*
|
| Beispiel aus Spot fuer den Post eines Coordinates-Objektes
|
| var coord = new Coordinates(
| c.latitude,
| c.longitude,
| self.nummer(c.altitude),
| self.nummer(c.accuracy),
| self.nummer(c.altitudeAccuracy),
| self.nummer(c.heading),
| self.nummer(c.speed));
| var cObj = self.serialisieren(coord);
|
|
| $.ajax({
| url: '../rpc?c=de.uhilger.spot.api.NutzerApi&m=ortSpeichern',
| data: {
| p: cObj
| },
| type: "POST",
| dataType : "html",
| //success: function( resp ) {
| //$('#fehler').html('Antwort: ' + resp);
| //},
| error: function( xhr, status, errorThrown ) {
| $('#fehler').html("Error: " + errorThrown + " Status: " + status);
| },
| complete: function( xhr, status ) {
| //alert( "The request is complete!" );
| }
| });
| usw.
|
|
| function Coordinates(la, lo, al, ac, aa, hd, sp) {
| this.latitude = la;
| this.longitude = lo;
| this.altitude = al;
| this.accuracy = ac;
| this.altitudeAccuracy = aa;
| this.heading = hd;
| this.speed = sp;
| }
|
|
|
|
| */
|
|