简体   繁体   English

bash:使cgi-script不打开新页面

[英]bash: make cgi-script don't open new page

Is there a way to stay on existing page when initialize a cgi-script? 初始化cgi脚本时,有没有办法保留在现有页面上? Script is written using bash. 脚本是使用bash编写的。 The page itself is very big to just echo his contens. 该页面本身非常大,仅能呼应他的内容。

If I understand you correctly you wan to run a server-side CGI script from a wbe page without reloading the page? 如果我理解正确,那么您希望从wbe页面运行服务器端CGI脚本而无需重新加载该页面吗? You can do this using AJAX - you would write some JavaScript to call the server-side script, this wouldn't require a new page to be loaded in the browser. 您可以使用AJAX进行此操作-您将编写一些JavaScript来调用服务器端脚本,而无需在浏览器中加载新页面。

Something like this should do it 事情是这样应该这样做

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM