function postResult(str) {
    $.ajax({
        type : "POST",
        url : '/',
        dataType: "json",
        data: JSON.stringify(str),
        contentType: 'application/json;charset=UTF-8',
        success: function (data) {
            // Getting date and time and putting it into a table
            updateTable(getDate(), str);
            console.log(data);
            
        }
    });
}
// Sends json post request to server

Sends json post request to server
Sends json post request to server
function postResult(str) {
    $.ajax({
        type : "POST",
        url : '/',
        dataType: "json",
        data: JSON.stringify(str),
        contentType: 'application/json;charset=UTF-8',
        success: function (data) {
            updateTable(getDate(), str);
            console.log(data);
        }
    });
}
function postResult ( str ) { $ . ajax ( { type : "POST" , url : '/' , dataType : "json" , data : JSON . stringify ( str ) , contentType : 'application/json;charset=UTF-8' , success : function ( data ) { updateTable ( getDate ( ) , str ) ; console . log ( data ) ; } } ) ; }
Sends json post request to server
Sends json post request to server
// Getting date and time and putting it into a table
