16 AnswersNew Answer
yup and I tried several solutions too, found them from websites & executed from my pc browser, yet none of them works either in SL playground nor W3schools TryIt... However, it does work if I save and run them in an HTML file. why can this be?
If it's resource intensive and SoloLearn has a large user base, I think the logical conclusion would be that implementing such a feature would not be a sustainable business decision in the long run. That being said, a weather app doesn't have to be real-time in that it opens up a direct connection to the server -- just have it pull new info on refresh.
Website and web app are technically different. https://www.quora.com/What-is-a-real-time-web-app
Janning⭐ that sucks :/ i cant think for any other ways
Yeah, I feel you. It's rough. I think the Code Playground is really great for testing out small things and showcasing snippets, but not ideal for substantial projects (although I very much admire the amount of code some SoloLearners have been able to cram into some of their projects). Still grateful for having it though! 😊
See my first comment? (You might have to Tap to Load More at this point.) I've found that w3schools TryIt is more broken than Code Playground.
use intervals for updating maybe?
Janning⭐ i think hes talking about js and js runs on client side so i dont think it would hurt sololearn
No problem. When you say real time, what's your alternate definition?
Janning⭐ i mean you can make connections with ajax in js and set an interval for auto-updating
AJAX requests in Code Playground error out on my phone, but maybe your platform supports them? https://code.sololearn.com/WSnE0qBz81Ek/?ref=app
Amirreza Odoumi, the point I was trying to make with the code sample is that real time updating doesn't work in Code Playground.