You are here: Re: Executing PHP Tasks While Letting A User Continue To Browse? « All PHP « IT news, forums, messages
Re: Executing PHP Tasks While Letting A User Continue To Browse?

Posted by robert on 04/26/06 19:21

pop-up...meaning ie's createpopup, js window.open(), a div, or the result of
target='go.process.it.php'?

i usually use the target= and have some kind of message with an animated
image indicating processing is underway. when php is done processing
whatever it is, you can use js to give some kind of alert that it's done
and/or close the window. i haven't found that that ties up the other browser
windows.

if you're not opposed to using frames, then that may be somthing to think
about too.

what browser are you testing this with?



"Good Man" <heyho@letsgo.com> wrote in message
news:Xns97B179AC72B93sonicyouth@216.196.97.131...
| Hi there
|
| I was wondering if someone could help me out with the following two
| situations.
|
| In a lot of my web apps, it seems that if i launch a PHP script that takes
| a long time to complete, the user is unable to browse/use the rest of the
| website until the tasks completes. Is there a way to avoid this?
|
| Specifically, app #1 let's a user choose which files to include in a zip
| file, then PHP makes the .zip file on the server and streams it to the
user
| via fopen/fread. So, as the user is downloading a file on the side (it
| presents them with the open/save dialog) they are unable to browse the
rest
| of the PHP-based site until the download completes; clicking on any links
| to pages does nothing, the browser just sits there until the file has been
| downloaded, THEN the screen advances.
|
| I am experiencing a similar thing with a PHP mail delivery system. I
tried
| to create a work-around: a pop-up window that sends an 'exec' command to
| the a php-script that sends the email to a few hundred recipients. Again,
| even though this action is being done in a pop-up window (and via the
| command line, no less), the user is paralyzed in the main window until the
| action completes.
|
| Can anyone tell me why this is happening, and what some workaround might
| be?
|
| Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация