Re: [PHP-DB] Processing Page
I've seen a solution that looks fairly simple to implement. Basically popup a window. Popup window displays "Processing please wait" and an animated gif. when the page in to background is done loading it kills the popup. I think you'd use "onload" in the body tag. try http://javascript.faqts.com olinux --- Adam Royle <[EMAIL PROTECTED]> wrote: > I have seen an example using JavaScript where > javascript commands are flushed every so often (from > PHP) which indicates a status bar process. It was > used to monitor mailouts. The javascript commands > were simply telling an image to increase it's width. > Of course you have to have a system where you can > gauge percentages of things done. Alternatively, you > could simply use same method (without image), and > after db stuff is done, output a javascript > redirect. > > The above is probably confusing, but ask me if you > need more explanation. > > Adam > > -Original Message- > From: Aspire Something [mailto:[EMAIL PROTECTED] > > Sent: Thursday, February 27, 2003 2:56 PM > To: php-db > Subject: Re: [PHP-DB] Processing Page > > Thanks every one ... > > All the method you told me are static it does not > look if the sql > statemet > being exec by php along with backend has finished > its job . I only > wanted to > show the processig page till the time the query does > it's work . > > let me add here that the time for execution of the > script here is > unpridictable and it is expected that it may vary > according to the job > given > thus > I cannot hardcode the refresh time . > > Regads, > V Kashyap > __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Processing Page
I have seen an example using JavaScript where javascript commands are flushed every so often (from PHP) which indicates a status bar process. It was used to monitor mailouts. The javascript commands were simply telling an image to increase it's width. Of course you have to have a system where you can gauge percentages of things done. Alternatively, you could simply use same method (without image), and after db stuff is done, output a javascript redirect. The above is probably confusing, but ask me if you need more explanation. Adam -Original Message- From: Aspire Something [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:56 PM To: php-db Subject: Re: [PHP-DB] Processing Page Thanks every one ... All the method you told me are static it does not look if the sql statemet being exec by php along with backend has finished its job . I only wanted to show the processig page till the time the query does it's work . let me add here that the time for execution of the script here is unpridictable and it is expected that it may vary according to the job given thus I cannot hardcode the refresh time . Regads, V Kashyap
RE: [PHP-DB] Processing Page
Timeout.html will redirect to verify_process.php after 30 seconds On verify_process.php you could run another query which would check the status of a certain field in the db. If this field is set to xxx, then redirect back to timeout.html, else redirect to process_complete.php. I guess this would work if you could set the field being used as a point of a reference when the other process is running. ??? ---> Jonathan -Original Message- From: Aspire Something [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:56 PM To: php-db Subject: Re: [PHP-DB] Processing Page Thanks every one ... All the method you told me are static it does not look if the sql statemet being exec by php along with backend has finished its job . I only wanted to show the processig page till the time the query does it's work . let me add here that the time for execution of the script here is unpridictable and it is expected that it may vary according to the job given thus I cannot hardcode the refresh time . Regads, V Kashyap - Original Message - From: "Jonathan Villa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "'Aspire Something'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 1:43 AM Subject: RE: [PHP-DB] Processing Page > http://yourpagehere";> > > 5 = time to wait > > > ---> Jonathan > > > > > -Original Message- > From: Jonathan Villa [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 2:10 PM > To: 'Aspire Something'; [EMAIL PROTECTED] > Subject: RE: [PHP-DB] Processing Page > > You could do this very easily using a HTML page with the correct META > tags. > > I am working on a Domino Project right now that does just that. > > After a page is submitted, the user is directed to an html page which > sits for about 45 seconds. This HTML page just says something like > "Your information is being processed by the State of XXX, please hold" > or something like it. Then the page is redirected to a result page. > > I have also done this before: > > Thrown in a javascript redirect which took effect after 30 seconds. > This page had an animated gif on similar to the startup gif on WinXP > > > ---> Jonathan > > > > > -Original Message- > From: Aspire Something [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 1:49 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Processing Page > > Hi all, > > Permit me to recive your valuable knowledge , > > We are working on a project where the backend churns data for about 1 > Minute (time out limit is 2 min) we would like > to put a page like > PROCESSING > during the database is busy doing its fine job. And also a sucess page > appears when the > process is sucessfull. > > Please if you have any idea how it can be done please let me > Humble thanks in advance. > We are not using persist connection to postgresql > === My Sys Looks as == > Red Hat 7.2 Kernel 2.4.7-10, > PHP 4.3.0, > GCC 3.02, > Apache 1.3.27 , > Postgresql 7.3.2, > Intel arch i686. > > > > Regards, > Aspire > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Processing Page
Thanks every one ... All the method you told me are static it does not look if the sql statemet being exec by php along with backend has finished its job . I only wanted to show the processig page till the time the query does it's work . let me add here that the time for execution of the script here is unpridictable and it is expected that it may vary according to the job given thus I cannot hardcode the refresh time . Regads, V Kashyap - Original Message - From: "Jonathan Villa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "'Aspire Something'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 1:43 AM Subject: RE: [PHP-DB] Processing Page > http://yourpagehere";> > > 5 = time to wait > > > ---> Jonathan > > > > > -Original Message- > From: Jonathan Villa [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 2:10 PM > To: 'Aspire Something'; [EMAIL PROTECTED] > Subject: RE: [PHP-DB] Processing Page > > You could do this very easily using a HTML page with the correct META > tags. > > I am working on a Domino Project right now that does just that. > > After a page is submitted, the user is directed to an html page which > sits for about 45 seconds. This HTML page just says something like > "Your information is being processed by the State of XXX, please hold" > or something like it. Then the page is redirected to a result page. > > I have also done this before: > > Thrown in a javascript redirect which took effect after 30 seconds. > This page had an animated gif on similar to the startup gif on WinXP > > > ---> Jonathan > > > > > -Original Message- > From: Aspire Something [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 1:49 PM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] Processing Page > > Hi all, > > Permit me to recive your valuable knowledge , > > We are working on a project where the backend churns data for about 1 > Minute (time out limit is 2 min) we would like > to put a page like > PROCESSING > during the database is busy doing its fine job. And also a sucess page > appears when the > process is sucessfull. > > Please if you have any idea how it can be done please let me > Humble thanks in advance. > We are not using persist connection to postgresql > === My Sys Looks as == > Red Hat 7.2 Kernel 2.4.7-10, > PHP 4.3.0, > GCC 3.02, > Apache 1.3.27 , > Postgresql 7.3.2, > Intel arch i686. > > > > Regards, > Aspire > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Processing Page
http://yourpagehere";> 5 = time to wait ---> Jonathan -Original Message- From: John A DAVIS [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:23 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Processing Page What are the correct META tags? I could use this functionality too. >>> [EMAIL PROTECTED] 02/27/03 12:10PM >>> You could do this very easily using a HTML page with the correct META tags. I am working on a Domino Project right now that does just that. After a page is submitted, the user is directed to an html page which sits for about 45 seconds. This HTML page just says something like "Your information is being processed by the State of XXX, please hold" or something like it. Then the page is redirected to a result page. I have also done this before: Thrown in a javascript redirect which took effect after 30 seconds. This page had an animated gif on similar to the startup gif on WinXP ---> Jonathan -Original Message- From: Aspire Something [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:49 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Processing Page Hi all, Permit me to recive your valuable knowledge , We are working on a project where the backend churns data for about 1 Minute (time out limit is 2 min) we would like to put a page like PROCESSING during the database is busy doing its fine job. And also a sucess page appears when the process is sucessfull. Please if you have any idea how it can be done please let me Humble thanks in advance. We are not using persist connection to postgresql === My Sys Looks as == Red Hat 7.2 Kernel 2.4.7-10, PHP 4.3.0, GCC 3.02, Apache 1.3.27 , Postgresql 7.3.2, Intel arch i686. Regards, Aspire -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Processing Page
http://yourpagehere";> 5 = time to wait ---> Jonathan -Original Message- From: Jonathan Villa [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 2:10 PM To: 'Aspire Something'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Processing Page You could do this very easily using a HTML page with the correct META tags. I am working on a Domino Project right now that does just that. After a page is submitted, the user is directed to an html page which sits for about 45 seconds. This HTML page just says something like "Your information is being processed by the State of XXX, please hold" or something like it. Then the page is redirected to a result page. I have also done this before: Thrown in a javascript redirect which took effect after 30 seconds. This page had an animated gif on similar to the startup gif on WinXP ---> Jonathan -Original Message- From: Aspire Something [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:49 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Processing Page Hi all, Permit me to recive your valuable knowledge , We are working on a project where the backend churns data for about 1 Minute (time out limit is 2 min) we would like to put a page like PROCESSING during the database is busy doing its fine job. And also a sucess page appears when the process is sucessfull. Please if you have any idea how it can be done please let me Humble thanks in advance. We are not using persist connection to postgresql === My Sys Looks as == Red Hat 7.2 Kernel 2.4.7-10, PHP 4.3.0, GCC 3.02, Apache 1.3.27 , Postgresql 7.3.2, Intel arch i686. Regards, Aspire -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Processing Page
You could do this very easily using a HTML page with the correct META tags. I am working on a Domino Project right now that does just that. After a page is submitted, the user is directed to an html page which sits for about 45 seconds. This HTML page just says something like "Your information is being processed by the State of XXX, please hold" or something like it. Then the page is redirected to a result page. I have also done this before: Thrown in a javascript redirect which took effect after 30 seconds. This page had an animated gif on similar to the startup gif on WinXP ---> Jonathan -Original Message- From: Aspire Something [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:49 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Processing Page Hi all, Permit me to recive your valuable knowledge , We are working on a project where the backend churns data for about 1 Minute (time out limit is 2 min) we would like to put a page like PROCESSING during the database is busy doing its fine job. And also a sucess page appears when the process is sucessfull. Please if you have any idea how it can be done please let me Humble thanks in advance. We are not using persist connection to postgresql === My Sys Looks as == Red Hat 7.2 Kernel 2.4.7-10, PHP 4.3.0, GCC 3.02, Apache 1.3.27 , Postgresql 7.3.2, Intel arch i686. Regards, Aspire -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Processing Page
Check out http://www.php.net/manual/en/function.ob-flush.php the ob_flush command. You could put an animated gif like an hourglass with a please wait at the beginning of your html output, perform an ob_flush command to put that info out to the browser, then perform your sql. After the sql finishes, output more information, or redirect to another page that says it's done. CAVEAT: Some versions of Microsoft Internet Explorer will only start to display the page after they have received 256 bytes of output, so you may need to send extra whitespace before flushing to get those browsers to display the page. Gary Every Sr. UNIX Administrator Ingram Entertainment (615) 287-4876 "Pay It Forward" mailto:[EMAIL PROTECTED] http://accessingram.com -Original Message- From: Aspire Something [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:49 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Processing Page Hi all, Permit me to recive your valuable knowledge , We are working on a project where the backend churns data for about 1 Minute (time out limit is 2 min) we would like to put a page like PROCESSING during the database is busy doing its fine job. And also a sucess page appears when the process is sucessfull. Please if you have any idea how it can be done please let me Humble thanks in advance. We are not using persist connection to postgresql === My Sys Looks as == Red Hat 7.2 Kernel 2.4.7-10, PHP 4.3.0, GCC 3.02, Apache 1.3.27 , Postgresql 7.3.2, Intel arch i686. Regards, Aspire
[PHP-DB] Processing Page
Hi all, Permit me to recive your valuable knowledge , We are working on a project where the backend churns data for about 1 Minute (time out limit is 2 min) we would like to put a page like PROCESSING during the database is busy doing its fine job. And also a sucess page appears when the process is sucessfull. Please if you have any idea how it can be done please let me Humble thanks in advance. We are not using persist connection to postgresql === My Sys Looks as == Red Hat 7.2 Kernel 2.4.7-10, PHP 4.3.0, GCC 3.02, Apache 1.3.27 , Postgresql 7.3.2, Intel arch i686. Regards, Aspire