summaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-resmgr/src/main/webapp/resmgr-nfv/js/SendMsg.js
blob: b898d6adbfbd92b0df92f31ee52b18718e320a8f (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);

}