[kronolith] Another Java script error and an undefined offset

Chris Hastie lists@oak-wood.co.uk
Fri, 6 Sep 2002 08:55:46 +0100


Hi

I'm getting the following JS error (seen in IE6) from 
kronolith/share/members.php (with a query string beginning edit_share). 
The error occurs when selecting a user from the drop down list.

|Line: 132
|Char: 7
|Error: document.members.elements.fields[][...] is null or not an object
|Code: 0

lines 122 - 135 of the source are:

|function updateForm(member)
|{
|    document.members.edit_member.value = member;
|    document.members.id.value =            members[member][0];
|
|    for (var i = 1; i < document.members.elements['fields[]'].length; i++) {
|       document.members.elements['fields[]'][i].checked = false;
|    }
|
|    for (var i = 0; members[member][1].length; i++) {
|      document.members.elements['fields[]'][members[member][1][i]].checked = true ;
|    }
|
|}

I also see the following notice regarding an undefined offset in 
kronolith/month.php and other views when changing to a shared calendar:

|Notice: Undefined offset: 1 in /usr/local/www/mail/data/horde/kronolith/lib/Kronolith.php on line 664
-- 
Chris Hastie