不确定进度条 [英] Indeterminate progress bar

查看:79
本文介绍了不确定进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好


我需要一些帮助来制作一个javascript进度条。它也可以是GIF图像,而不需要那么复杂的代码。我将在下面给出一个示例代码并尝试解释我需要什么。


<! - Page1代码 - >


[HTML]< html>

< body>

< form action =" sec_test.php" method =" post">

输入网址:

< input type =" text" name =" Path">

< input type =" submit">

< / form>

< / body>

< / html>

[/ HTML ]

<! - Page2.php - >

Hi Guys

I need some help making a javascript progress bar. It can be a GIF image too and not so complex code is required. I am giving a sample code below and try to explain what I need.

<!-- Page1 code -->

[HTML]<html>
<body>
<form action="sec_test.php" method="post">
Enter the website address:
<input type="text" name="Path">
<input type="submit">
</form>
</body>
</html>
[/HTML]
<!-- Page2.php -->

展开 | 选择 | 换行 | 行号

推荐答案

你说5 - 30分钟?
did you say 5 - 30 minutes?



你说5 - 30分钟?
did you say 5 - 30 minutes?



PS:Tracert只是一个复制我所面临问题的例子。


我正在使用像Nessus通过Windows上的命令行。运行扫描可能需要5分钟,也可能需要30分钟,具体取决于用户输入。我做了所有的处理,它工作正常。它运行扫描并显示输出。然而,有一个很长的延迟,Page1似乎停止了相当长的时间。


但问题是,即使我在第2页写了一个加载栏脚本,它也会在命令提示符处理完毕并返回结果之前,不显示加载栏。这已经在PHP中使用反引号完成

PS: Tracert is just an example to replicate the problem that I am facing.

I am using a tool like Nessus through command line on Windows. It might take 5min to run a scan or may take 30min also, depending on the user input. I have done all the processing and it works fine. It runs the scan and displays the output too. However, there is a very long delay and Page1 seems to be halted for quite a long time.

But the problem is, even if I write a loading bar script in Page2, it will not display the loading bar until command prompt has finished processing and returns the result. This has been done using backticks in PHP

展开 | 选择 | Wrap | 行号


我不知道是否有人读过我的问题。但我现在不需要它。我觉得答案迟了。谢谢:))
I don''t know if anyone read my question. But I don''t need it now. I think its late for the answer. Thanks :)


这篇关于不确定进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆