Project

General

Profile

Send JavaScript » History » Version 1

Tomek Dziemidowicz, 2019-07-18 09:07 PM

1 1 Tomek Dziemidowicz
h1. Send JavaScript
2
3
<pre><code class="javascript">
4
$.ajax({
5
    url: sqlitesync_SyncServerURL + "Send",
6
    method: 'POST',
7
    headers: {
8
            'Content-Type':'application/json'
9
    },
10
    cache : false,
11
    scope:this,
12
    data: JSON.stringify({ "subscriber" : sqlitesync_syncPdaIdent, "content": sqlitesync_SyncDataToSend , "version" : "3" }),
13
    dataType: 'json',
14
    timeout: 5 * 60 * 1000,//10min
15
    success: function (response, status) { //Success Callback
16
17
    },
18
    failure: function (result, request) {
19
20
    }
21
});
22
</code></pre>
Go to top