forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


CGI waiting screen.

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Bart
Valued Newbie


Joined: 24 Jun 2003
Posts: 41
Location: Netherlands

PostPosted: Mon Jul 28, 2003 10:41 am    Post subject: CGI waiting screen. Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Jul 28, 2003 12:19 pm    Post subject: Reply with quote

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

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Bart
Valued Newbie


Joined: 24 Jun 2003
Posts: 41
Location: Netherlands

PostPosted: Mon Jul 28, 2003 12:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jul 28, 2003 2:31 pm    Post subject: Reply with quote

Do you have an example of your current work? Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Bart
Valued Newbie


Joined: 24 Jun 2003
Posts: 41
Location: Netherlands

PostPosted: Mon Jul 28, 2003 2:59 pm    Post subject: Reply with quote

Hi,

Just solved the problem Laughing, it was simple just use java Idea


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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Jul 28, 2003 5:46 pm    Post subject: Reply with quote

Looks like U added "Javascript" Confused
I think its different from java Question
I dont know anything in this field cgi etc but just wondering

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Mon Jul 28, 2003 6:10 pm    Post subject: Reply with quote

That's Javascript indeed. Java can be used outside HTML files as well, so there are much more functions and commands which can show dialogs, open files, etc.
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jul 28, 2003 8:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bart
Valued Newbie


Joined: 24 Jun 2003
Posts: 41
Location: Netherlands

PostPosted: Tue Jul 29, 2003 7:31 am    Post subject: Reply with quote

That "progress bar" doesn't work with vdsinet, it sends the page after the script stops.

The javaSCRIPT Smile does the job very well now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group