Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Forcing output to a browser when perl is busy

by hbo (Monk)
on Jul 17, 2004 at 20:16 UTC ( #375279=note: print w/replies, xml ) Need Help??

in reply to Forcing output to a browser when perl is busy

The Javscript approach is the way to go. An onSubmit handler can disable the submit button, then submit the form.

You can't do this sort of thing purely on the server side without maintining state. Since HTTP itself is is stateless (each transaction is unreleated to any other as far as the protocol is concerned) you have to build state on top, like with cookies. This adds complexity, even if you hide the gory details with things like CGI::Session. For this problem, the client side solution is simpler, even if it isn't in Perl. 8)

  • Comment on Re: Forcing output to a browser when perl is busy

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://375279]
[jedikaiti]: Your Mother++ #♫ You say apod, I say Perl POD ... let's call the whole thing off ♬

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-08-18 17:24 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (306 votes). Check out past polls.