If chatblock is configured to not allow unauthorized user to chat, but to view chatting, then in the IE 6, there is an error message
=======
Line: 77
Char: 3
Error: document.getElementById("...") is null or not an object
Code: 0
=======

I guess it is because there is no text input field which has ID=edit-chatblocksubmit when guest is viewing the site with chatblock, but chatblock.js uses it here (in the function chatblockResponse(jsonStringResponse)):

here is this 77 line:
document.getElementById("edit-chatblocksubmit").disabled = false;

Should be just existence of this ID checked before operating it in this line?
p.s. Thanks for the module, nice stuff.

Comments

transliteration’s picture

well as I told the following works fine:

if (document.getElementById("edit-chatblocksubmit")) {
document.getElementById("edit-chatblocksubmit").disabled = false;
}

i guess it is possible to set status as fixed?

dwees’s picture

No leave it open until I add this fix to the module itself. It will remind me that if I ever get a chance to do updates, that this is a necessary fix. Thanks for the simple solution.

Dave

dwees’s picture

Status: Active » Fixed

This issue is fixed in both the 5.x-dev release and the 6.x-dev release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.