thrungames

Ajax

Being able to make ajax requests easy is important. Therefore has THRUNIUM simplified ajax requests.

THRUNIUM.ajax(options)

options Object
return Object

Make ajax requests with options. (list with options coming).

var options = {
	url: "https://www.example.com/get-data",
	type: "get",
	withCredentials: true,
	success: function (data) {
		// handle data here
	},
	error: function (e) {
		// handle error here
	}
});

THRUNIUM.ajax(options);