ulrich
2016-11-27 5bf001d9a557bec3a0b67cd519936c4ed4295db4
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
50
51
52
53
54
55
56
57
/*
 
  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;
}
 
 
 
 
 */
 
function um_init() {
  $('.user-save-btn').click(um_user_save);
}
 
function um_user_save() {
  alert('user-save');
}