| View previous topic :: View next topic |
| Author |
Message |
Bart Valued Newbie
Joined: 24 Jun 2003 Posts: 41 Location: Netherlands
|
Posted: Mon Jul 28, 2003 10:41 am Post subject: CGI waiting screen. |
|
|
Hello,
I need a "waiting screen" in CGI, i use vdsinet.dll
It's for a loginpage when the the cgi get all the date from a database, but that could takes up to 10 sec, so i want to display a message while the data is processed. Any idea's
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=blablabla?value1=23&value2=34"> doesn't do the job.
Bart |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Jul 28, 2003 12:19 pm Post subject: |
|
|
Maybe you can do something like this:
When a user calls page1.exe, send the wait page with a refesh. Then let the refresh page call page2.exe. In the mean while, page1.exe should contact the database and write the value to a file (database.txt or something). When page2.exde is loaded, just send the database.txt file to the user.
I hope you understand me. If you don't, please contact me in some way, so I can explain in Dutch...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Bart Valued Newbie
Joined: 24 Jun 2003 Posts: 41 Location: Netherlands
|
Posted: Mon Jul 28, 2003 12:48 pm Post subject: |
|
|
That doesn't work (META HTTP-EQUIV="Refresh" CONTENT="blablabla.exe?v1=12&v2=34).
I try to do that but IE comes with a message box thats tell you to try again to send the value's and stay's on that page. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jul 28, 2003 2:31 pm Post subject: |
|
|
Do you have an example of your current work?  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Bart Valued Newbie
Joined: 24 Jun 2003 Posts: 41 Location: Netherlands
|
Posted: Mon Jul 28, 2003 2:59 pm Post subject: |
|
|
Hi,
Just solved the problem , it was simple just use java
| Code: |
net cgi,write,<BODY onload=@chr(34)transfer()@chr(34)>
net cgi,write,<script language=@chr(34)JavaScript@chr(34)>
net cgi,write,function transfer() {
net cgi,write,setTimeout('location.href = @chr(34)Blabla.exe?v1=%A&v2=%B@chr(34);'@chr(44)1000);
net cgi,write,}
net cgi,write,// -->
net cgi,write,</script>
|
This works fine for me.
Last edited by Bart on Tue Jul 29, 2003 7:51 am; edited 1 time in total |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Jul 28, 2003 5:46 pm Post subject: |
|
|
Looks like U added "Javascript"
I think its different from java
I dont know anything in this field cgi etc but just wondering _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jul 28, 2003 8:19 pm Post subject: |
|
|
What I would do in this situation, is have the cgi program "WAIT 1" in a
loop. In that loop, I'd keep adding like the period character to the page
like a progress bar until whatever you are doing is complete, then leave
the loop and print whatever results.
This would require two exe's though. One is the main exe which the
browser is communicating with, and the other is the one that does the
search. Use your preferred method of communicating between the two
exe files.
But find out what the time out is on your server, as it is possible for
your waiting to exceed the time out and then your exe would be killed
by the server. Typically, I've seen 60 and 90 seconds as the most
common.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Bart Valued Newbie
Joined: 24 Jun 2003 Posts: 41 Location: Netherlands
|
Posted: Tue Jul 29, 2003 7:31 am Post subject: |
|
|
That "progress bar" doesn't work with vdsinet, it sends the page after the script stops.
The javaSCRIPT does the job very well now. |
|
| Back to top |
|
 |
|