aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/SendMsg.js
blob: e42c0333807654c2c5e818fa3f6ce381ae8a78d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var sendMsg = {
    get: "get",
    post: "post"
}

function request(url, requestType, data, success, error, async) {
    var setting = {
        url: url,
        async: async ? async : false,
        type: requestType,
        dataType: "json",
        contentType: 'application/json;charset=UTF-8',
        data: data,
        success: success,
        error: error
    }

    $.ajax(setting);

}