databse remote connection

This commit is contained in:
Lukas Nowy
2018-11-14 00:19:07 +01:00
parent 5bfa3a4007
commit c94a631b1a
6664 changed files with 209 additions and 824596 deletions

View File

@ -1,12 +1,36 @@
$(document).ready(function() {
//DELETE THIS
$.ajax({
type: "POST",
url: "/shoppinglist",
data: {
name: "Name Test",
description: "Description Test"
}
$("#iconadd").click(function(){
$(".modal").modal();
$("#addmodal").modal('open');
// alert("sadcfghj");
});
// ---
$(".add").click(function(){
let name = $("#einkaufslistenname").val();
let beschreibung = $("#einkaufslistenbeschreibung").val();
$.ajax({
type: "POST",
url: "/shoppinglist",
data: {
name: name,
description: beschreibung
},
success(res){
console.log("funktioniert");
},
error(err){
console.log("error");
}
});
});
});