b****n 发帖数: 464 | 1 我在做一个网页,希望有一个button可以运行一个server-side 的python script,
而且当这个python script运行结束后,告诉client-side “运行结束”
这些东西用中文说得蹩脚,用英文再说一遍:
I would like to have an HTML button which, when clicked by the user,
contacts the server and runs a Python
script on the server. When the Python script finishes running, the current
HTML page automatically reloads a
file from the server.
多谢! |
s****y 发帖数: 983 | 2 with refresh: FORM or HREF
no refresh: AJAX |
b********2 发帖数: 855 | 3 FORM METHOD=POST
OR AJAX, by using jQUery or something else. |
b****n 发帖数: 464 | 4 谢谢!
【在 s****y 的大作中提到】 : with refresh: FORM or HREF : no refresh: AJAX
|
b****n 发帖数: 464 | 5 谢谢!
【在 b********2 的大作中提到】 : FORM METHOD=POST : OR AJAX, by using jQUery or something else.
|