Activate file after JS input | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 2

Activate file after JS input

I need to open a file after some sort of input from JS, and I was wondering how. Specifically it is a .py file and it would be nice if I didn't have to install anything or use another platform, although I will. Thanks for the support.

20th Sep 2018, 10:19 PM
Carson
Carson - avatar
5 Respuestas
+ 1
Here a demo about manually open a text file, but I think it only work from PC browsers, not mobile. https://code.sololearn.com/W6Dz0lW21RQv/?ref=app
21st Sep 2018, 12:21 AM
Calviղ
Calviղ - avatar
0
Okay and thanks, but can this apply to .py files ?
21st Sep 2018, 1:59 AM
Carson
Carson - avatar
0
it can only open the .py file as text file and display the codes.
21st Sep 2018, 2:57 AM
Calviղ
Calviղ - avatar
0
In order to run the python, client javascript have to send code to server, server executes it and response to client with the processed output data.
21st Sep 2018, 3:01 AM
Calviղ
Calviղ - avatar
0
Can the server run python code that opens cmd ?
21st Sep 2018, 12:09 PM
Carson
Carson - avatar