17.10.2017, 14:56
(This post was last modified: 17.10.2017, 15:20 by Erwin van der Zwart.)
Hi,
1) Should also be possible from apps/data/yourappfolder
2) Yes, not tested, i position the element with a text and after that i changed text to space because it looked cleaner, never tried to fetch it again .. Sorry (:
Maybe it's better to do it like this so you don't see initial text:
Add this to custom css
and add this to the custom javaScript:
BR,
Erwin
1) Should also be possible from apps/data/yourappfolder
2) Yes, not tested, i position the element with a text and after that i changed text to space because it looked cleaner, never tried to fetch it again .. Sorry (:
Maybe it's better to do it like this so you don't see initial text:
Add this to custom css
Code:
.username {
display: none;
}
and add this to the custom javaScript:
Code:
$(function(){
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
var res = xhttp.responseText;
if (typeof(res) !== "undefined" && res !== null){
var uppercaseRes = res.charAt(0).toUpperCase() + res.slice(1);
$(".username").html(uppercaseRes);
$(".username").css("display","initial");
}
}
};
xhttp.open("GET", "/user/user.lp", true);
xhttp.send();
});
Erwin