Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Is there any Perl Module to handle HTML Pages

by dorward (Curate)
on May 19, 2006 at 09:24 UTC ( [id://550456]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is there any Perl Module to handle HTML Pages
in thread Is there any Perl Module to handle HTML Pages

(I'm a bit unclear as to if you are writing something that produces webpages, or something that tests the production of webpages by something else. I'm assuming the former for this:)

Writing web applications (which I assume you are doing, as I've very very rarely seen HTML used in other types of application) is fundamentally different from writing regular GUI applications. It is a client-server system with a stateless protocol.

The server cannot send any data to the client except in response to a request from the client, and there is no built in way to tell one client from another.

So, one way to do what you want is to identify users with sessions, and when the request to start the long process comes in, fork it into the background and have it set a flag (probably in a database) when it is finished, then have the browser (using client side code such as a meta refresh or (buzzword alert) Ajax) make requests every $n seconds to another process which checks the status of the aforementioned flag.

I'm not aware of anything which implements all this in one module, but something like Catalyst or CGI::Application may be the way to go.

  • Comment on Re^3: Is there any Perl Module to handle HTML Pages

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://550456]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-25 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found