Solved

Slow CGI

Posted on 1997-06-16
3
254 Views
Last Modified: 2013-12-25
Hi,
I have recently made a CGI script that have a very slow answer time (it executes a lot of queries on a remote mainframe) and the Microsoft IE3 have a strange behavior with this CGI (and possible others). When I click the
Submit button I don't get the Hourglass cursor  nor the message "Web site found. Waiting for reply" at the status bar. I know that it works because in few minutes I have the answer but I'm afraid that my users could click the
submit button twice or more expecting  some kind of message or cursor changing. What can be
done to solve this problem?  
In this case, how do I send an intemediate page with some message like "Please wait... Processing" ?

I'm using VB5 with the MS IIS3.0 web server (NT4 SP3).

Thanks.
0
Comment
Question by:gorcutt
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
icd earned 100 total points
ID: 1828261
One way would be to have an intermediate script, just as you suggested, which put a message up for a short amount of time (say five seconds) and then linked to your actual script.

The script would have to output something like:-

<html>
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=http://www.xxx.yyy/cgi-bin/newscript.pl?par1=foo&par2=bar">
<head></head>
<body>Please wait while the script executes</body>
</body>
</html>

Here the cgi variables have been passed to the new script with the GET method. I don't think it is possible to do this with the POST method unless you use javascript.

Using javascript will be a problem for those people who do not have it enabled.

0
 
LVL 2

Expert Comment

by:Philippe
ID: 1828262
By all means reject my answer, the one by Philippe sounds much better.

Philippe. Is it possible to disable cgi output buffering on a per-script basis or is it a supervisor type operation?
0
 
LVL 5

Expert Comment

by:icd
ID: 1828263
Phjlippe answer is good but I think there is another way. I recently bought some CD's on the Internet and when I pressed the Submit button (for processing my invoice and the Credit Card), a page containing "Wait, processing your credit card" came on the screen and after a while that page was SUBSTITUTED (not appended) with the answer of my Invoice. I’m sure that there was no <META HTTP-EQUIV="Refresh"> because the data was posted and there was no Javascript. That CGI technic is what I’m looking for.

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now