Is there a proper standardized way of counting unique visitors in your API? I'm using fingerprintjs to count for unique visitors and saving that in Redis, but I can't verify if it's a random 32 char string or a fingerprint, so any other alternatives?
#jsHelp
Having a moment - my WP JS AJAX call is returning 0.
$.ajax({
url: my_ajax.url,
type: 'get',
dataType:"json",
data: {'action':'my_func'},
success: function(reply){
console.log(reply);
}
});
my_func works if I just call it from the 404 page #wp#jshelp
2️⃣1️⃣#100DaysOfCode
I'm still on Javascript fundamentals of @TheOdinProject, clear to me I haven't grasped some of the basics. I see many doing FreeCodeCamp, any good?
Odin suggests number of Wes Bos exercises, might step to #javascript30 tonight?
#jshelp#jsmakesmybrainhurt
JS FRIENDOS
var filename = { payload: msg.payload.data.filename };
HOW the FUCK do i call this variable inthis :
msg.payload = ({message: ["My Bot's message"]},{files: [`${filename}`]})
running this gives me
" no such file or directory, stat '/opt/[object Object]'"
I thought i had the eventListener down. Have been using it on projects to a somewhat great success. But on this last take, there is something strange. Looks like the page refreshes when I click a button.
#javascript#CodeNewbie#jshelp@TheOdinProject