Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP, AJAX - Chatroom Beep?

New Here ,
Jun 19, 2010 Jun 19, 2010

I built a chatroom with PHP Ajax and everything is working perfectly, but I want to send a beep to everyone in the chat room when someone sends a new message.  I tried to google it, but I didn't really come up with anything.


Can someone point me in the right direction to do this?


Thanks!

TOPICS
Server side applications
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 19, 2010 Jun 19, 2010

It is not advisable, to say the least.

You will have browser compatibility issues, you will have to use third party technologies like Java Applets or Flash documents.

Besides, users will find it disturbing to have beeping sounds all over the place (I would ).

If you really need to get your users' attention on every single chat entry, you can use Javascript's native alert() function. It will play the system's default "alert" sound. But users will need to click OK everytime.

As I said, my advice would be just don't do it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 29, 2010 Aug 29, 2010

Well I need something to get the attention of members when someone sends a message.  Is there another solution you can offer?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 29, 2010 Aug 29, 2010
LATEST

Is this the type of chat room where there will be constant activity or just occasionally like a chat support feature?  If it's the latter, then i can see why you would need an alert. I think most of those just activate a system sound.

Another way would be to do it visually, a subtle light flashing or something like that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines