UserBalloon.js 681 Bytes
Newer Older
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
var ballonContent = {
    header: "Test",
    Content: "This is a test",
    lat: "",
    lon: "",
    categorie: ""
  }



function PostUserInput(){

    try {
  
        $.ajax({
            async: false,
            type: "POST",
            url: '/newBallon',
            data: ballonContent
        }).done(function (SimSMid) {
            return(SimSMid)
            // convertdata(SimSMid);
        });
  
        // function convertdata(SimSMids) {
        //     SimSOutput = SimSMids;
        // }
  
        // // console.log(currentwind);
        // return SimSOutput;
    }
    catch (err) {
        console.log('->  function PostUserInput() failed!\n' + err);
    }
}