+ 1
How can I link js and python?
11 Respuestas
+ 2
I mean inserting python code into javascripts' like <script> or <style> method in HTML
+ 1
You can't
+ 1
Aymane Boukrouh thanks for answering!
+ 1
Iam not sure about javascript, but a turnaround would be to excute a .py file, and get the output as a variable (I only tried it with php though, you have to check if it works with javascript too, use google)
+ 1
sure, I will do that
+ 1
you can! using brython, you can use python in html!
+ 1
it needs to be copied into the java script part(the code that helps it work) then you can do thta
+ 1
I don't know but <script language ="python" type ="text/python" ?
+ 1
I'm not sure, python is for data. Servers with all the comment stuff, there profile and other personnal stuff need python to manage the data. Maybe link with php and after with php to javascript.
+ 1
thanks a lot guys!
0
What kind of link do you mean ?