+ 6
Can you save data in Solo-Learn?
I am working in JS and would like to store data, preferably locally. I have tried several posted suggestions and none seem to work. Examples, links, suggestions all appreciated.
8 odpowiedzi
+ 9
Unfortunately in the console "Sololearn", this can not be done! You can save your data only on hosting! Hope for understanding :)
+ 3
@Michael Simnitt
I don't have experience with working with files using js either.
So I can't really help you with that.
But I think the post I linked explains how to upload content via dropbox.
+ 2
Well if anybody can come up with a method that actually works I will surely look into it. It would be nice for some of the apps in math programs to be able to save user data and preferences as well as for gaming.
+ 2
Dropbox maybe a solution.(Not really locally but it works)
https://www.sololearn.com/discuss/1054246/?ref=app
+ 2
@Harris are you suggesting making a JavaScript API of sorts for saving data and then storing it externally and calling it from within solo learn apps? I'm brand new to JavaScript so please bear with my silly questions.
+ 1
Custom codes?
JavaScript in a browser should be able to read file objects. Wx you refer to local file objects depends on the object addressing. The form file:////somedir//somefile.txt may work on some systems. without specifying the file: part, it refers to the system that hosts the Js. this is from memory, take it with a grain of salt.
Unless I misunderstood what you meant by "locally". You can always embed data in your .js code. Technically, that would be "local".
+ 1
Yes, all custom codes. Sadly sololearn does not provide a method for this. And if they did I fear it would be exploited to troll/harass or do harm.
+ 1
It's funny... I can post a response, but SL won't let me UPVOTE Michael Simnitt's comment.