﻿(function($) {
	$.jsonQuery = function(options) {
		var jsonQuerysettings = { 
			async: false,
			cache: false,
			type: "get",
			contentType: "application/json; charset=utf-8",
			dataType: "json",
			error: function(xhr, msg, errorThrown) {
				alert("Errore durante la chiamata al server.\nContattare lo staff tecnico e/o riprovare a breve.");
			}
		};
		$.extend(jsonQuerysettings, options);
		$.ajax(jsonQuerysettings);

	}
})(jQuery)
