+ 8

Is it possible to style the results page in SL?

Friends, a little help, please. Lately, I have been trying to make JS versions of some Code Coach challenges' code I did, but whenever the 'Send' button is pressed on the html page to send the info to the JS function, the results page comes with the old black letter on white background color. I've already had problems with sending info to the 'next page' on PHP here and I believe this is just the way SL works. Still, I thought about raising the issue here just to see if anyone knew otherwise. As usual, your help will be much appreciated. Thanks in advance!

2nd Jan 2020, 1:38 PM
D.R.
D.R. - avatar
4 Respuestas
+ 3
Oh thanks for eloborating. If you mean Form, it doesn't work in SoloLearn code playground because code playground is frontend, but you need a backend environment to handle user form submission to display different results. To imitate so, there are two approaches. One is single page app, like this: https://code.sololearn.com/W80l0huYVkI5/?ref=app another is connect to cloud data server, such as Google firebase, like this: https://code.sololearn.com/Wp7ioJa1Pule/?ref=app
2nd Jan 2020, 3:26 PM
Gordon
Gordon - avatar
+ 3
you need to learn CSS for styling web contents There are three tabs for Web Code, you fill in scripts in each tab. Run at last.
2nd Jan 2020, 1:52 PM
Gordon
Gordon - avatar
+ 3
Awesome, Gordon. Exactly what I was looking for. Thanks! 😁
2nd Jan 2020, 4:15 PM
D.R.
D.R. - avatar
+ 1
Thank you for dedicating some time to answer, Gordon. Thing is... the html page is already styled. The issue comes when one clicks the 'Send' button. The following page with the results is the one that comes blank. In a browser environment, I would just have to name the pages, link and style them accordingly and there we'd have it. My question is if it's possible to do so in SL, since we have no clue what name the output page will have. Still, thanks again.
2nd Jan 2020, 2:08 PM
D.R.
D.R. - avatar