constantly monitor the situation but we are in C# over SQLServer.
I did something similar in PHP and Ajax and MySQL in the old company but trust
me, it is not simple if you want to be consistent.
Regards.
> Date: Sat, 28 Mar 2009 00:45:27 -0400
> From: jbw2...@earthlink.net
> To: an_.
neral@lists.php.net
Date: Fri, 27 Mar 2009 15:55:28 +0100
Subject: RE: [PHP] flushing AJAX scripts
Sorry, Kim, but why on earth you are polling with a second request to know when
the first one has finished?
I mean, when the first request inserts data in the database that's it, you'll
manage
Sorry Jim, I meant Jim when I wrote Kim ... and
Phico:
http://webreflection.blogspot.com/2008/04/phomet-changes-name-so-welcome-phico.html
Regards
> From: an_...@hotmail.com
> To: php-general@lists.php.net
> Date: Fri, 27 Mar 2009 15:55:28 +0100
> Subject: RE: [PHP] flushing
hp-general@lists.php.net
> Subject: Re: RE: [PHP] flushing AJAX scripts
>
> My page submits the AJAX request to complete a report that takes some
> time, and upon completion stores results in a database. A second AJAX
> request polls every 5 seconds and queries the database if the
jbw2...@earthlink.net
CC: php-general@lists.php.net
Subject: Re: [PHP] flushing AJAX scripts
jim white wrote:
I am using jQuery AJAX request to run a script that can take several
minutes to create a report. I want to start the script and immediately
echo a response to close the connection and the
php-general@lists.php.net
> Subject: Re: [PHP] flushing AJAX scripts
>
> jim white wrote:
> > I am using jQuery AJAX request to run a script that can take several
> > minutes to create a report. I want to start the script and immediately
> > echo a response to close
Hello Jim,
You will need to do some low level ajax coding from the client side with the
onreadychange event. If you're using jquery 1.3 then you can create your own
XHR object with the xhr callback handler.
To learn more about the ready state check out this link:
http://www.quirksmode.org/blog
jim white wrote:
I am using jQuery AJAX request to run a script that can take several
minutes to create a report. I want to start the script and immediately
echo a response to close the connection and then let the script complete
a report which I can get later. I have tried several thing such a
8 matches
Mail list logo