RE: [PHP-DB] Re: Processing Page

2003-02-27 Thread Jonathan Villa
I guess I was thinking of a success only scenario.  If the backend
never failed, then an easy Meta redirect would work, (if given enough
time to process).

However, in the real world, assuming success is a foolish mistake.  

 
--- Jonathan
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Fredrik de Vibe
Sent: Thursday, February 27, 2003 2:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Re: Processing Page

[EMAIL PROTECTED] (Aspire Something) writes:
 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 

Since a client never can talk to a server with html pages this is
afaik not really possible. You'd have to use something like a java
applet, flash or something else that is able to talk to a server.

However, you could maybe work around it in some ways, I haven't tested
these, but I guess they should work to some extent:

1. Simple. Just make a page which reloads the target page after one
   minute. This, however, might be problematic if the work takes
   longer than one minute and would create needless waiting time if
   the work is processed quicker.

2. More or less the same as (1), but a little more sophisticated. Send
   a page that loads itself every five or ten seconds. For each
   reload, test if the work has been done, if not send the same page,
   otherwise, send a success page or whatever.

Others may have better solutions, and there could be problems with
these that I haven't thought of, but at least they're suggestions ;-)


-- 
--Fredrik
If God is dead, who will save the Queen?

-- 
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] Re: Processing Page

2003-02-27 Thread Jonathan Villa
Oops, I sent my message without finishing it (that's what I get for
having to many windows open).

I think your #2 option would work.  It's very similar to what I have
done in the pass . I forgot exactly how I did it, I would have to look
in my archives, but I'm pretty sure it was something like that,  I know
it involved 3 pages

1. please hold page
2. page to verify the status of the process, then redirect to #1 or else
#2
3. final result
--- Jonathan
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Fredrik de Vibe
Sent: Thursday, February 27, 2003 2:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Re: Processing Page

[EMAIL PROTECTED] (Aspire Something) writes:
 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 

Since a client never can talk to a server with html pages this is
afaik not really possible. You'd have to use something like a java
applet, flash or something else that is able to talk to a server.

However, you could maybe work around it in some ways, I haven't tested
these, but I guess they should work to some extent:

1. Simple. Just make a page which reloads the target page after one
   minute. This, however, might be problematic if the work takes
   longer than one minute and would create needless waiting time if
   the work is processed quicker.

2. More or less the same as (1), but a little more sophisticated. Send
   a page that loads itself every five or ten seconds. For each
   reload, test if the work has been done, if not send the same page,
   otherwise, send a success page or whatever.

Others may have better solutions, and there could be problems with
these that I haven't thought of, but at least they're suggestions ;-)


-- 
--Fredrik
If God is dead, who will save the Queen?

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