18.10.2023, 09:59
Hello, I'm testing the use of storage function to first understand it, and then visualize some data with JS functions.
First, I write some data in a variable and I storage it:
Second, I read this data and I log it for viewing the result:
After that, I try to view it on a browser console, for which I use custom JavaScript (the first console.log it's to see that is working):
But I received a 404 code for the GET, and it says: Not found.
What am I doing wrong?
I've also tried to explore the user folder with Filezilla, but it's empty.
Thank you for your help.
First, I write some data in a variable and I storage it:
Code:
data = {1,2,3,4,5,6,7,8}
storage.set('/user/example.lp', data)
Second, I read this data and I log it for viewing the result:
Code:
store = storage.get('/user/example.lp', {})
log(store)
After that, I try to view it on a browser console, for which I use custom JavaScript (the first console.log it's to see that is working):
Code:
$(function(){
console.log('Hello');
$.get('/user/example.lp', function(exampleData) {
console.log(exampleData);
});
});
But I received a 404 code for the GET, and it says: Not found.
What am I doing wrong?
I've also tried to explore the user folder with Filezilla, but it's empty.
Thank you for your help.