Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Script for livechat with staff

by Andre_br (Pilgrim)
on Jul 27, 2005 at 14:12 UTC ( [id://478607]=perlquestion: print w/replies, xml ) Need Help??

Andre_br has asked for the wisdom of the Perl Monks concerning the following question:

Hello my code-friends,

Hereīs a web one.

I am willing to write my own liveChat script, but I am quite confused about how the script should work. I mean, in normal conditions I use Perl scripts as one-time calls, like I-give-you-this-and-you-give-me-that-and-end-of-talk.

But for the live chat It would be necessary to keep talking, as new messages from the visitor and the adm staff will have to be server-pushed for both (as they arrive, to avoid obssessive and sometimes pointless refreshing of the client-pull technique).

My host doesnīt support mod_perl and also kills scripts after 10 minutes of life. So I donīt know how to procede. This odd CGI dialog format seems too strange for me.

Can anyone give me some directions? Iīve tried to find coherent material about this on the web without success.

Thanks a lot

Andre_br

Replies are listed 'Best First'.
Re: Script for livechat with staff
by Jaap (Curate) on Jul 27, 2005 at 14:34 UTC
    ajax might be what you want. In javascript (client-side) you can request a (xml, or not) document from the server and parse it and let it display the lastest lines.
Re: Script for livechat with staff
by zentara (Archbishop) on Jul 27, 2005 at 16:56 UTC
    If you are not "stuck" using stateless http, you can setup your own server, and give clients to your staff. It's alot easier, and more "eavesdropping-proof". Tk encrypted echoing-chat client and server is encrypted and has a few bells and whistles, but you could also just use one of the basic echoing chat servers-client pairs, of which there are many basic examples. Of course your firewall has to allow you to use your chosen port.

    I'm not really a human, but I play one on earth. flash japh

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found