Frug / AJAX-Chat

A fully customizable web chat implemented in JavaScript, PHP and MySQL which integrates nicely with common forum systems like phpBB, MyBB, FluxBB, SMF and vBulletin. A Flash and Ruby based socket connection can be used to boost performance.
http://frug.github.io/AJAX-Chat/
548 stars 300 forks source link

"TypeError: ajaxChat.handleInputFieldKeyPress is not a function" on shoutbox integration #215

Open sorryjack opened 9 years ago

sorryjack commented 9 years ago

I integrate the standalone version to my website as shoutbox and I got this error when I type on the chat input field: TypeError: ajaxChat.handleInputFieldKeyPress is not a function

It runs well on the standalone chat app, but not in shoutbox mode.

Thanks n please help.

Frug commented 8 years ago

It sounds like you're not including all the javascript correctly. Please use groups for support.

DonDiegoAA commented 8 years ago

I think there is an error in lib/template/shoutbox.html onkeypress="ajaxChat.handleInputFieldKeyPress(event);" should be onkeypress="ajaxChat.handleInputFieldKeyDown(event);"

Also, sound_7.ogg, sound_7.wav, sound_8.ogg and sound_7.wav are missing.

Frug commented 8 years ago

Quite right. Looks like I changed the function elsewhere but not shoutbox.