Hi guys&gals
Quick question, lets say i have a .cgi program that takes about 4 seconds to run. When you 'submit' via the webpage form (which executes the .cgi program) , it will take about 4 seconds, then displays the results in a new HTML page.
How do i make it ,so once i hit submit via the form, the new web page is displayed instantly, but instead of the 4 second wait for the script to finish executing, the results (of the script) start scrolling and updating on the webpage as the script is running ?
Basically, you're at a html form, you hit submit, another HTML page is created that says for instance "Please wait for results"... then as the scripts starting spitting out the info, you actualyl see the text being spit out in HTML (as if you were running the script from a terminal).
I see it on tons of pages work like that, but i never figured out how to do it. My scripts always execute fully, then displays results. THanks in advance!
Quick question, lets say i have a .cgi program that takes about 4 seconds to run. When you 'submit' via the webpage form (which executes the .cgi program) , it will take about 4 seconds, then displays the results in a new HTML page.
How do i make it ,so once i hit submit via the form, the new web page is displayed instantly, but instead of the 4 second wait for the script to finish executing, the results (of the script) start scrolling and updating on the webpage as the script is running ?
Basically, you're at a html form, you hit submit, another HTML page is created that says for instance "Please wait for results"... then as the scripts starting spitting out the info, you actualyl see the text being spit out in HTML (as if you were running the script from a terminal).
I see it on tons of pages work like that, but i never figured out how to do it. My scripts always execute fully, then displays results. THanks in advance!