For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > August 2007 > How to tell the user "we're working on it"









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to tell the user "we're working on it"
Kevin Scaldeferri

2007-07-30, 7:23 pm

The system I'm working on has a number of page requests which can
take a long time to return the results to the user. Not to
surprisingly, the users don't like looking at a blank page for 30-60
seconds before the reply comes back and finally renders. I'm
wondering what techniques other people use for dealing with this sort
of thing, and if there are POE components to help out with it.


One approach would be to return a placeholder page that says "working
on your request <spinner>" that periodically refreshes until the
request is done. I know how to do this using a unique request
identifier in the URL, but I'm not sure how to make this play well
with bookmarking or emailing URLs to other people.

I could also just send some header HTML out right away, then wait
until everything else is ready to send the rest of the page, but this
approach seems counter to how most of the templating systems want to
work. Is there some straightforward way to combine HTML templating
and partial page loading? Of course, this approach still leaves the
user sitting looking at an unchanging page for quite a while.

My ideal UI would be some sort of AJAXy UI with status messages being
replaced with results as they come in, but since I basically know
nothing about how to implement that sort of thing, and I'd need to
substantially re-engineer my application to do it, I'm hoping to find
some sort of acceptable partial solution that will work while I learn
how to do what I really want.


I realize this post is only partially POE related, but I'm hoping I
can get some pointers from people who may have built systems with
similar behavior.



Thanks,


-kevin
Tom Lanyon

2007-07-30, 10:18 pm

On 31/07/2007, at 8:44 AM, Kevin Scaldeferri wrote:

> The system I'm working on has a number of page requests which can
> take a long time to return the results to the user. Not to
> surprisingly, the users don't like looking at a blank page for
> 30-60 seconds before the reply comes back and finally renders. I'm
> wondering what techniques other people use for dealing with this
> sort of thing, and if there are POE components to help out with it.
>
>
> One approach would be to return a placeholder page that says
> "working on your request <spinner>" that periodically refreshes
> until the request is done. I know how to do this using a unique
> request identifier in the URL, but I'm not sure how to make this
> play well with bookmarking or emailing URLs to other people.
>
> I could also just send some header HTML out right away, then wait
> until everything else is ready to send the rest of the page, but
> this approach seems counter to how most of the templating systems
> want to work. Is there some straightforward way to combine HTML
> templating and partial page loading? Of course, this approach
> still leaves the user sitting looking at an unchanging page for
> quite a while.
>
> My ideal UI would be some sort of AJAXy UI with status messages
> being replaced with results as they come in, but since I basically
> know nothing about how to implement that sort of thing, and I'd
> need to substantially re-engineer my application to do it, I'm
> hoping to find some sort of acceptable partial solution that will
> work while I learn how to do what I really want.
>


Kevin,

You haven't really detailed anything about what you're doing. Are you
using a web-framework? which HTTP server? what are you using POE for?
etc.

From your basic overview I would be assigning a unique ID to a task
(possibly associated with a specific user's session if you desire)
and including that in the query parameters ( http://server/page?
taskid=12345 ) and have your page return a 'refresh' header and some
pretty waiting message until the task is complete. This means your UI
will be constantly pulling information from the backend, saying "is
it ready yet?".

On the other hand, your 'ideal UI' would involve pushing events from
the POE application server to the client UI, instead of having the UI
pull results from the backend. This is the sort of thing being done
on the Cometd project so you may wish to have a look around there
( http://www.cometd.com ). There's lots of collaboration between the
Cometd, POE and Catalyst projects so you shouldn't have a hard time
integrating something like this.

Regards,
Tom

Kevin Scaldeferri

2007-08-03, 4:33 am


On Jul 30, 2007, at 7:45 PM, Tom Lanyon wrote:

> On 31/07/2007, at 8:44 AM, Kevin Scaldeferri wrote:
>
>
> Kevin,
>
> You haven't really detailed anything about what you're doing. Are
> you using a web-framework? which HTTP server? what are you using
> POE for? etc.



Well, POE is my web server. I guess I figured that much was implicit.

>
> From your basic overview I would be assigning a unique ID to a task
> (possibly associated with a specific user's session if you desire)
> and including that in the query parameters ( http://server/page?
> taskid=12345 ) and have your page return a 'refresh' header and
> some pretty waiting message until the task is complete. This means
> your UI will be constantly pulling information from the backend,
> saying "is it ready yet?".


Yes, that's the first approach I listed, which breaks bookmarking.


>
> On the other hand, your 'ideal UI' would involve pushing events
> from the POE application server to the client UI, instead of having
> the UI pull results from the backend. This is the sort of thing
> being done on the Cometd project so you may wish to have a look
> around there ( http://www.cometd.com ). There's lots of
> collaboration between the Cometd, POE and Catalyst projects so you
> shouldn't have a hard time integrating something like this.



Okay, I'll have a look at that.


-kevin

Abanlem

2007-08-13, 10:29 am

Real gay movies!
gay oral sex video

gay marriage
gay muscle man video gay home movie gay dating baby gay kiss lil video wayne gay cowboys live gay sex gay man military movie gay sex story gay gratis sex video video sexo gay bareback gay movie amateur gay free gay movie post gay sex gay male sex story gay list movie gay hunk black free gay movie gay movie xxx gay asian video gay sex photo gay movie xxx free gay video chat gay hourly sex video free gay sex video free gay movie trailer gay video download free gay pool sex video college gay sex video gay bareback gay single gay movie shorties gay anal sex gay massage video barebacking condom gay man sex unprotected without gay sex clip
college free gay sex video big boy gay muscle video cartoon free gay sex video free gay picture sex video gay home movie gay zone video gay bear nude gay sex 101 gay man movie must see gay guys having sex free gay sex video gay video college guys gay right free gay sex teen video straight man gay sex free gay movie sex gay sex tube video gay cum
archive free gay sex video gay sample video download free gay sex video gay wrestling cum free gay movie shot gay blind date sex gay guys free gay rough sex video gay sex teenage video free gay streaming video gay bear sex ebony gay sex
Sterter

2007-08-20, 8:31 pm

Christina Applegate extreme masturbation!
http://www.digitalalemedia.com/Watch?watch=726071

Christina Aguilera huge archive of homemade porn!
http://www.digitalalemedia.com/player.mpeg?watch=726071

Christina Applegate opening pussy outdoor scene!
http://www.digitalalemedia.com/Medi...hp?movie=726071

Jennifer Lopez gone wild!
http://www.digitalalemedia.com/Wind...gi?watch=726071

Angelina Jolie , Female ejaculation movies at squirters.tv!
http://www.digitalalemedia.com/Medi...r.cgi?id=726071
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com