Game-Jaming/Frontend/Javascript/qweData.js

40 lines
761 B
JavaScript
Raw Normal View History

2021-03-22 08:42:17 +00:00
/*
2021-03-17 09:14:54 +00:00
$(window).on("load", function(){
dataFetch();
});
2021-03-22 08:42:17 +00:00
2021-03-17 09:14:54 +00:00
function dataFetch(){
$.ajax({
type: "GET",
2021-03-19 08:18:19 +00:00
url: "/Game-Jaming/Backend/controllers/GameJam/GetGameJam.php",
2021-03-17 09:14:54 +00:00
success: function(result){
2021-03-19 08:18:19 +00:00
console.log(result[0].name);
2021-03-17 09:14:54 +00:00
}
});
2021-03-19 08:18:19 +00:00
}
2021-03-22 08:42:17 +00:00
*/
$("#qweLog").click(function(){
var vgroupName = $("#groupName").val();
var vpassword = $("#groupPassword").val();
$.post("/Game-Jaming/Backend/Controllers/Group/Login.php",
{
login: "data",
groupName: vgroupName,
password: vpassword
},
function(data){
alert("Data: " + data);
});
});
2021-03-19 08:18:19 +00:00
//console.log(result.name); ?gameJamId=1
//console.log(result[0].name); uden ?gameJamId=1