var elems = document.querySelectorAll('.inner a');
for (var i = 0, length = elems.length; i < length; i++) {
elems[i].addEventListener('click', function(e){
e.preventDefault();
sendAjax(this.href);
});
}
function sendAjax(url) {
$.ajax({
url: '/server/fix_in_session.php',
type: "POST",
data: { url:url },
cache: false,
error: function (xhr, ajaxOptions, thrownError) {
},
success: function (data) {
}
});
}