Quick CGI Question
Hi all,
I have a search script written in CGI - basically
when a user hits the search button it brings up
the background for the results page then waits a
few seconds whilst it searches then displays the
results. I would like it to diplay a message similar
to e.g. "searching sites - please wait"
Any ideas as to where to put this - in the html part
or in the cgi script itself? Any ideas on how to do
this would also be very helpful.
Sorry if the explanation is a bit vague
Cheers
Steve
hotcut posted this at 10:20 — 8th July 2001.
They have: 133 posts
Joined: Sep 2000
I don't know any CGI, however I know that it is server-side; it cannot redirect itself!
If you know that after 5 seconds it will all be found, you can simply do like this:
after 5 seconds, it will move to that page.
Was it something like that you neede`d?
~Casper
secretsofwar.net
Gyrbo posted this at 11:52 — 8th July 2001.
They have: 105 posts
Joined: Jun 2001
If you make a layer, and Place some lading text on it, and with a tag hide the layer so that the user would see the results.
myriad posted this at 20:37 — 8th July 2001.
They have: 88 posts
Joined: Mar 1999
Thanks for the replies. Looking at
my post it probably wasn't the most
discriptive in the world - a drink
before a post is never a good idea
What happens is this:
1st page has an input box when you
hit submit the details are passed onto
the cgi script which does the work.
While this is happening the background
colour of the results page is displayed.
Once the cgi script has the results it then
fills in the page.
I need a little message to say "Please wait..."
just after the submit button is hit whilst the
screen is blank and before the results are displayed.
I am unsure as to whether I should put it into the
cgi script itself or can I get the submit button to
do two actions 1 to pass the info to the cgi script
and 2 display a popup or something similar.
Unsure as to whether that was a better explanation -
need a drink
cheers
Steve
Abhishek Reddy posted this at 21:23 — 8th July 2001.
He has: 3,348 posts
Joined: Jul 2001
hi myriad,
maybe the search button could send the user to a page with a top and bottom frame, one of which displays the "please wait" message. and an onLoad function in the results frame hides the message frame one.
this way you can create only a static html page separately and avoid any layers (browser compatibilty issues).
i hope it helped.
also, i dont see why it cannot redirect itself. once again , i know it is possible with ASP using the response.redirect method .
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.