Skip to content
Snippets Groups Projects
Commit 8055fb28 authored by ands's avatar ands
Browse files

json bugfix

parent b354edbb
No related branches found
No related tags found
No related merge requests found
function fillContent(response) {
if (response["TuerOffen"] == false){
if (response["tuerOffen"] == false){
$("#ZoneOffen_open").html(" <font color='red'>geschlossen!</font>");
} else {
$("#ZoneOffen_open").html(" <font color='green'>geöffnet!</font>");
$("#ZoneOffen_open").html(" <font color='green'>ge&ouml;ffnet!</font>");
}
$("#ZoneOffen_templounge").html(response["tempLounge"]);
$("#ZoneOffen_tempwerkstatt").html(response["tempWerkstatt"]);
}
function updateZoneOffen () {
$.getJson("widgets/ZoneOffen/ajax.php", function (response)
$.getJSON("widgets/ZoneOffen/ajax.php", function (response)
{
fillContent(response);
}, "json");
});
}
$(document).ready(function()
{
//Zuerst einmal nur einmal laden
//Zuerst nur einmal laden
updateZoneOffen();
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment