Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
I am building a chat room for my website and am trying to figure out a way for a Perl script, that will run continuously as long as people are still logged in, to call a Javascript return protocol when someone says something. I'm not entirely sure this is possible for security reasons. Any insight into this would be helpful.
Posted
Comments
Sergey Alexandrovich Kryukov 11-Nov-11 1:50am    
What is "JavaScript return protocol"? There is no such thing, is it?
--SA
LordXandor 12-Nov-11 15:38pm    
Yes, there is. My website has at least 15 of them. That's what Ajax is all about. Check out my website at www.xtremecomutingol.com. The menu on the left does work, even though they apear to be plain text, this will be fixed soon. The entire visit on the website is on one single page using Javascript return protocols and a client side console to process it all.

1 solution

Are you talking about a voice chat? This may be a hard task and the hosting well be even harder (a lot of traffic).

For a text chat see this example here http://sourceforge.net/projects/ajaxperlchat/[^] using perl and ajax. But be aware, most hosting companies limit the execution time and memory (voice chat) of scripts so your solution may not work on managed webspace.
Hans.
 
Share this answer
 
Comments
LordXandor 12-Nov-11 15:33pm    
Thank you very much for the help. I am simply talking about text chat. I think this ajax chat will work with some modifications for user login. As for the execution time, I can modify the perl to run only when a user sends a message and use a database for message storage.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900