Quick CGI Question

They have: 88 posts

Joined: Mar 1999

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
Confused

Cheers

Steve

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

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.

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 Wink

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 Wink

cheers

Steve

Abhishek Reddy's picture

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. Smiling

also, i dont see why it cannot redirect itself. once again Laughing out loud, i know it is possible with ASP using the response.redirect method Laughing out loud.

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.